PdfExtractor
概述
PdfExtractor 是 Aspose.PDF FOSS for C++ 中的一个类。
PdfExtractor 通过调用 ExtractText() 提取文本,然后调用 GetText(outputFile) 将提取的纯文本写入文件。
此类在 C++ 程序中提供用于操作 PdfExtractor 对象的 24 个方法。可用的方法包括:EndPage、ExtractAttachment、ExtractImage、ExtractText、ExtractTextMode、GetAttachNames、GetAttachment、GetAttachmentInfo、GetNextImage、GetNextPageText、GetText、HasNextImage,以及另外 6 个方法。安装 Aspose.PDF FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
PdfExtractor() | 在此 PdfExtractor 实例上调用 PdfExtractor。 |
ExtractText() | 在此 PdfExtractor 实例上调用 ExtractText。 |
GetText(outputFile: std::string) | 在此 PdfExtractor 实例上调用 GetText(outputFile)。 |
HasNextPageText() → bool | 如果存在下一页文本,则返回 true。 |
GetNextPageText(outputFile: std::string) | 在此 PdfExtractor 实例上调用 GetNextPageText(outputFile)。 |
ExtractImage() | 在此 PdfExtractor 实例上调用 ExtractImage。 |
HasNextImage() → bool | 如果存在下一张图像,则返回 true。 |
GetNextImage(outputFile: std::string) → bool | 在此 PdfExtractor 实例上调用 GetNextImage(outputFile)。 |
GetAttachNames() → std::vector<std::string> | 返回附件名称。 |
ExtractAttachment() | 在此 PdfExtractor 实例上调用 ExtractAttachment。 |
ExtractAttachment(attachmentFileName: std::string) | 在此 PdfExtractor 实例上调用 ExtractAttachment(attachmentFileName)。 |
GetAttachment(outputPath: std::string) | 在此 PdfExtractor 实例上调用 GetAttachment(outputPath)。 |
GetAttachmentInfo() → std::vector<Aspose::Pdf::FileSpecification> | 返回附件信息。 |
StartPage() → int | 在此 PdfExtractor 实例上调用 StartPage。 |
StartPage(value: int) | 在此 PdfExtractor 实例上调用 StartPage(value)。 |
EndPage() → int | 在此 PdfExtractor 实例上调用 EndPage。 |
EndPage(value: int) | 在此 PdfExtractor 实例上调用 EndPage(value)。 |
ExtractTextMode() → int | 在此 PdfExtractor 实例上调用 ExtractTextMode。 |
ExtractTextMode(value: int) | 在此 PdfExtractor 实例上调用 ExtractTextMode(value)。 |
Resolution() → int | 在此 PdfExtractor 实例上调用 Resolution。 |
Resolution(value: int) | 在此 PdfExtractor 实例上调用 Resolution(value)。 |
Password() → std::string | 在此 PdfExtractor 实例上调用 Password。 |
Password(value: std::string) | 在此 PdfExtractor 实例上调用 Password(value)。 |
IsBidi() → bool | 如果已设置 bidi,则返回 true。 |