PdfAnnotationEditor
概述
PdfAnnotationEditor 是 Aspose.PDF FOSS for C++ 中的一个类。
PdfAnnotationEditor 可以从 FDF 或 XFDF 文件导入批注,并将其扁平化为页面内容,去除交互式元素。
此类提供 15 种方法,用于在 C++ 程序中处理 PdfAnnotationEditor 对象。可用的方法包括:DeleteAnnotation、DeleteAnnotations、FlatteningAnnotations、ImportAnnotationFromXfdf、ImportAnnotations、ImportAnnotationsFromFdf、ImportAnnotationsFromXfdf、ModifyAnnotations、ModifyAnnotationsAuthor、PdfAnnotationEditor。在安装 Aspose.PDF FOSS for C++ 包后,所有公共成员均可被任何 C++ 应用程序访问。
方法
| 签名 | 描述 |
|---|---|
PdfAnnotationEditor() | 在此 PdfAnnotationEditor 实例上调用 PdfAnnotationEditor。 |
ImportAnnotationsFromXfdf(xfdfFile: std::string) | 从 XFDF 文件加载批注到文档中 |
ImportAnnotationsFromFdf(fdfFile: std::string) | 在此 PdfAnnotationEditor 实例上调用 ImportAnnotationsFromFdf(fdfFile)。 |
ImportAnnotationFromXfdf(xfdfFile: std::string) | 在此 PdfAnnotationEditor 实例上调用 ImportAnnotationFromXfdf(xfdfFile)。 |
ImportAnnotationFromXfdf(xfdfFile: std::string, annotType: std::vector<Aspose::Pdf::Annotations::AnnotationType>) | 在此 PdfAnnotationEditor 实例上调用 ImportAnnotationFromXfdf(xfdfFile, annotType)。 |
ImportAnnotations(annotFile: std::vector<std::string>, annotType: std::vector<Aspose::Pdf::Annotations::AnnotationType>) | 在此 PdfAnnotationEditor 实例上调用 ImportAnnotations(annotFile, annotType)。 |
ImportAnnotations(annotFile: std::vector<std::string>) | 在此 PdfAnnotationEditor 实例上调用 ImportAnnotations(annotFile)。 |
ModifyAnnotations(start: int, end: int, annotation: Aspose::Pdf::Annotations::Annotation) | 在此 PdfAnnotationEditor 实例上调用 ModifyAnnotations(start, end, annotation)。 |
ModifyAnnotationsAuthor(start: int, end: int, srcAuthor: std::string, desAuthor: std::string) | 在此 PdfAnnotationEditor 实例上调用 ModifyAnnotationsAuthor(start, end, srcAuthor, desAuthor)。 |
FlatteningAnnotations() | 将所有导入的注释转换为静态页面图形 |
FlatteningAnnotations(flattenSettings: Aspose::Pdf::Forms::Form::FlattenSettings) | 在此 PdfAnnotationEditor 实例上调用 FlatteningAnnotations(flattenSettings)。 |
FlatteningAnnotations(start: int, end: int, annotType: std::vector<Aspose::Pdf::Annotations::AnnotationType>) | 在此 PdfAnnotationEditor 实例上调用 FlatteningAnnotations(start, end, annotType)。 |
DeleteAnnotations() | 在此 PdfAnnotationEditor 实例上调用 DeleteAnnotations。 |
DeleteAnnotations(annotType: std::string) | 在此 PdfAnnotationEditor 实例上调用 DeleteAnnotations(annotType)。 |
DeleteAnnotation(annotName: std::string) | 在此 PdfAnnotationEditor 实例上调用 DeleteAnnotation(annotName) 。 |