FlatteningAnnotations
FlatteningAnnotations()
展平文档中的所有注释。
public void FlatteningAnnotations()
例子
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
editor.FlatteningAnnotations();
editor.Save(example_out.pdf");
也可以看看
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
FlatteningAnnotations(FlattenSettings)
展平文档中的所有注释。
public void FlatteningAnnotations(FlattenSettings flattenSettings)
范围 | 类型 | 描述 |
---|---|---|
flattenSettings | FlattenSettings | 指定展平模式。 |
也可以看看
- class FlattenSettings
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF
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");
也可以看看
- enum AnnotationType
- class PdfAnnotationEditor
- 命名空间 Aspose.Pdf.Facades
- 部件 Aspose.PDF