PdfAnnotationEditor.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)
| 参数 | 类型 | 描述 |
|---|---|---|
| flattenSettings | FlattenSettings | 指定扁平化模式。 |
另请参见
FlatteningAnnotations(int, int, AnnotationType[])
扁平化指定类型的注释。
public void FlatteningAnnotations(int start, int end, AnnotationType[] annotType)
| 参数 | 类型 | 描述 |
|---|---|---|
| start | Int32 | 起始页。 |
| end | Int32 | 结束页。 |
| annotType | AnnotationType[] | 应该被扁平化的注释类型。 |
示例
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={AnnotationType.Line, AnnotationType.FreeText};
editor.FlatteningAnnotations(1, 2, annotTypes);
editor.Save("example_out.pdf");