public final class AnnotationsDistiller extends Object
Constructor and Description |
---|
AnnotationsDistiller(org.sejda.sambox.pdmodel.PDDocument document)
Document where pages and annotations come from, it's used to resolve named destinations.
|
Modifier and Type | Method and Description |
---|---|
org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation> |
retainRelevantAnnotations(org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.PDPage> relevantPages)
Removes from the given set of pages all the annotations pointing to a page that is not in the lookup (an irrelevant page) and replaces annotations pointing to an old page
with a new one pointing to the looked up page.
|
public AnnotationsDistiller(org.sejda.sambox.pdmodel.PDDocument document)
document
- public org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.interactive.annotation.PDAnnotation> retainRelevantAnnotations(org.sejda.commons.LookupTable<org.sejda.sambox.pdmodel.PDPage> relevantPages)
relevantPages
- Copyright © 2022 sejda. All rights reserved.