FlatteningAnnotations

FlatteningAnnotations()

展平文档中的所有注释。

public void FlatteningAnnotations()

例子

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

也可以看看


FlatteningAnnotations(FlattenSettings)

展平文档中的所有注释。

public void FlatteningAnnotations(FlattenSettings flattenSettings)
范围类型描述
flattenSettingsFlattenSettings指定展平模式。

也可以看看


FlatteningAnnotations(int, int, AnnotationType[])

展平指定类型的注解。

public void FlatteningAnnotations(int start, int end, AnnotationType[] annotType)
范围类型描述
startInt32起始页。
endInt32然后结束页面。
annotTypeAnnotationType[]注释类型应该是扁平的。

例子

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

也可以看看