iText 8.0.4 API
iText.Kernel.Utils.PdfAnnotationFlattener Class Reference

Utility class for flattening annotations. More...

Public Member Functions

  PdfAnnotationFlattener (PdfAnnotationFlattenFactory pdfAnnotationFlattenFactory)
  Creates a new instance of PdfAnnotationFlattener. More...
 
  PdfAnnotationFlattener ()
  Creates a new instance of PdfAnnotationFlattener. More...
 
virtual IList< PdfAnnotation Flatten (IList< PdfAnnotation > annotationsToFlatten)
  Flattens the annotations on the page according to the defined implementation of iText.Kernel.Utils.Annotationsflattening.IAnnotationFlattener. More...
 
virtual IList< PdfAnnotation Flatten (PdfDocument document)
  Flattens the annotations on the page according to the defined implementation of iText.Kernel.Utils.Annotationsflattening.IAnnotationFlattener. More...
 

Detailed Description

Utility class for flattening annotations.

Utility class for flattening annotations.

This class can be used to remove interactive elements from a PDF document.

Constructor & Destructor Documentation

◆ PdfAnnotationFlattener() [1/2]

iText.Kernel.Utils.PdfAnnotationFlattener.PdfAnnotationFlattener ( PdfAnnotationFlattenFactory  pdfAnnotationFlattenFactory )
inline

Creates a new instance of PdfAnnotationFlattener.

Parameters
pdfAnnotationFlattenFactory the factory for creating annotation flatten workers

◆ PdfAnnotationFlattener() [2/2]

iText.Kernel.Utils.PdfAnnotationFlattener.PdfAnnotationFlattener ( )
inline

Creates a new instance of PdfAnnotationFlattener.

Creates a new instance of PdfAnnotationFlattener. The default factory will be used for creating annotation flatten workers.

Member Function Documentation

◆ Flatten() [1/2]

virtual IList<PdfAnnotation> iText.Kernel.Utils.PdfAnnotationFlattener.Flatten ( IList< PdfAnnotation annotationsToFlatten )
inlinevirtual

Flattens the annotations on the page according to the defined implementation of iText.Kernel.Utils.Annotationsflattening.IAnnotationFlattener.

Parameters
annotationsToFlatten the annotations that should be flattened.
Returns
the list of annotations that were not flattened successfully

◆ Flatten() [2/2]

virtual IList<PdfAnnotation> iText.Kernel.Utils.PdfAnnotationFlattener.Flatten ( PdfDocument  document )
inlinevirtual

Flattens the annotations on the page according to the defined implementation of iText.Kernel.Utils.Annotationsflattening.IAnnotationFlattener.

Parameters
document the document that contains the annotations that should be flattened.
Returns
the list of annotations that were not flattened successfully