PdfAnnotationEditor.FlatteningAnnotations
Contents
[
Hide
]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
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
FlatteningAnnotations(FlattenSettings)
Flattens all annotations in the document.
public void FlatteningAnnotations(FlattenSettings flattenSettings)
Parameter | Type | Description |
---|---|---|
flattenSettings | FlattenSettings | Specifies modes of flattening. |
See Also
- class FlattenSettings
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
FlatteningAnnotations(int, int, AnnotationType[])
Flattens the annotations of the specified types.
public void FlatteningAnnotations(int start, int end, AnnotationType[] annotType)
Parameter | Type | Description |
---|---|---|
start | Int32 | The start page. |
end | Int32 | Then end page. |
annotType | AnnotationType[] | 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
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF