Table of Contents

Class PdfAnnotationFlattener

Namespace
iText.Kernel.Utils
Assembly
itext.kernel.dll

Utility class for flattening annotations.

public class PdfAnnotationFlattener
Inheritance
PdfAnnotationFlattener
Inherited Members

Remarks

Utility class for flattening annotations.

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

Constructors

PdfAnnotationFlattener()

Creates a new instance of PdfAnnotationFlattener.

public PdfAnnotationFlattener()

Remarks

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

PdfAnnotationFlattener(PdfAnnotationFlattenFactory)

Creates a new instance of PdfAnnotationFlattener.

public PdfAnnotationFlattener(PdfAnnotationFlattenFactory pdfAnnotationFlattenFactory)

Parameters

pdfAnnotationFlattenFactory PdfAnnotationFlattenFactory

the factory for creating annotation flatten workers

Methods

Flatten(IList<PdfAnnotation>)

Flattens the annotations on the page according to the defined implementation of IAnnotationFlattener.

public virtual IList<PdfAnnotation> Flatten(IList<PdfAnnotation> annotationsToFlatten)

Parameters

annotationsToFlatten IList<PdfAnnotation>

the annotations that should be flattened.

Returns

IList<PdfAnnotation>

the list of annotations that were not flattened successfully

Flatten(PdfDocument)

Flattens the annotations on the page according to the defined implementation of IAnnotationFlattener.

public virtual IList<PdfAnnotation> Flatten(PdfDocument document)

Parameters

document PdfDocument

the document that contains the annotations that should be flattened.

Returns

IList<PdfAnnotation>

the list of annotations that were not flattened successfully