PdfAnnotationEditor.FlatteningAnnotations

FlatteningAnnotations()

Flattens all annotations in the document.

public void FlatteningAnnotations()

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.FlatteningAnnotations();
editor.Save(example_out.pdf");

See Also


FlatteningAnnotations(FlattenSettings)

Flattens all annotations in the document.

public void FlatteningAnnotations(FlattenSettings flattenSettings)
ParameterTypeDescription
flattenSettingsFlattenSettingsSpecifies modes of flattening.

See Also


FlatteningAnnotations(int, int, AnnotationType[])

Flattens the annotations of the specified types.

public void FlatteningAnnotations(int start, int end, AnnotationType[] annotType)
ParameterTypeDescription
startInt32The start page.
endInt32Then end page.
annotTypeAnnotationType[]The annotation types should be flattened.

Examples

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={AnnotationType.Line, AnnotationType.FreeText};
editor.FlatteningAnnotations(1, 2, annotTypes);
editor.Save("example_out.pdf");

See Also