FlatteningAnnotations

FlatteningAnnotations()

Aplatit toutes les annotations du document.

public void FlatteningAnnotations()

Exemples

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

Voir également


FlatteningAnnotations(FlattenSettings)

Aplatit toutes les annotations du document.

public void FlatteningAnnotations(FlattenSettings flattenSettings)
ParamètreTaperLa description
flattenSettingsFlattenSettingsSpécifie les modes d’aplatissement.

Voir également


FlatteningAnnotations(int, int, AnnotationType[])

Aplatit les annotations des types spécifiés.

public void FlatteningAnnotations(int start, int end, AnnotationType[] annotType)
ParamètreTaperLa description
startInt32La page de démarrage.
endInt32Puis page de fin.
annotTypeAnnotationType[]Les types d’annotation doivent être aplatis.

Exemples

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

Voir également