public class PdfAnnotationFlattener extends Object
This class can be used to remove interactive elements from a PDF document.
| Constructor and Description |
|---|
PdfAnnotationFlattener()
Creates a new instance of
PdfAnnotationFlattener. |
PdfAnnotationFlattener(PdfAnnotationFlattenFactory pdfAnnotationFlattenFactory)
Creates a new instance of
PdfAnnotationFlattener. |
| Modifier and Type | Method and Description |
|---|---|
List<PdfAnnotation> |
flatten(List<PdfAnnotation> annotationsToFlatten)
Flattens the annotations on the page according to the defined implementation of
IAnnotationFlattener. |
List<PdfAnnotation> |
flatten(PdfDocument document)
Flattens the annotations on the page according to the defined implementation of
IAnnotationFlattener. |
public PdfAnnotationFlattener(PdfAnnotationFlattenFactory pdfAnnotationFlattenFactory)
PdfAnnotationFlattener.pdfAnnotationFlattenFactory - the factory for creating annotation flatten workerspublic PdfAnnotationFlattener()
PdfAnnotationFlattener.
The default factory will be used for creating annotation flatten workers.public List<PdfAnnotation> flatten(List<PdfAnnotation> annotationsToFlatten)
IAnnotationFlattener.annotationsToFlatten - the annotations that should be flattened.public List<PdfAnnotation> flatten(PdfDocument document)
IAnnotationFlattener.document - the document that contains the annotations that should be flattened.Copyright © 1998–2024 Apryse Group NV. All rights reserved.