PdfExtractor
Overview
PdfExtractor is a class in Aspose.PDF FOSS for C++.
PdfExtractor extracts text by calling ExtractText() and then GetText(outputFile) to write the extracted plain‑text to a file.
This class provides 24 methods for working with PdfExtractor objects in C++ programs.
Available methods include: EndPage, ExtractAttachment, ExtractImage, ExtractText, ExtractTextMode, GetAttachNames, GetAttachment, GetAttachmentInfo, GetNextImage, GetNextPageText, GetText, HasNextImage, and 6 additional methods.
All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
PdfExtractor() | Calls PdfExtractor on this PdfExtractor instance. |
ExtractText() | Calls ExtractText on this PdfExtractor instance. |
GetText(outputFile: std::string) | Calls GetText(outputFile) on this PdfExtractor instance. |
HasNextPageText() → bool | Returns true if next page text is present. |
GetNextPageText(outputFile: std::string) | Calls GetNextPageText(outputFile) on this PdfExtractor instance. |
ExtractImage() | Calls ExtractImage on this PdfExtractor instance. |
HasNextImage() → bool | Returns true if next image is present. |
GetNextImage(outputFile: std::string) → bool | Calls GetNextImage(outputFile) on this PdfExtractor instance. |
GetAttachNames() → std::vector<std::string> | Returns the attach names. |
ExtractAttachment() | Calls ExtractAttachment on this PdfExtractor instance. |
ExtractAttachment(attachmentFileName: std::string) | Calls ExtractAttachment(attachmentFileName) on this PdfExtractor instance. |
GetAttachment(outputPath: std::string) | Calls GetAttachment(outputPath) on this PdfExtractor instance. |
GetAttachmentInfo() → std::vector<Aspose::Pdf::FileSpecification> | Returns the attachment info. |
StartPage() → int | Calls StartPage on this PdfExtractor instance. |
StartPage(value: int) | Calls StartPage(value) on this PdfExtractor instance. |
EndPage() → int | Calls EndPage on this PdfExtractor instance. |
EndPage(value: int) | Calls EndPage(value) on this PdfExtractor instance. |
ExtractTextMode() → int | Calls ExtractTextMode on this PdfExtractor instance. |
ExtractTextMode(value: int) | Calls ExtractTextMode(value) on this PdfExtractor instance. |
Resolution() → int | Calls Resolution on this PdfExtractor instance. |
Resolution(value: int) | Calls Resolution(value) on this PdfExtractor instance. |
Password() → std::string | Calls Password on this PdfExtractor instance. |
Password(value: std::string) | Calls Password(value) on this PdfExtractor instance. |
IsBidi() → bool | Returns true if bidi is set. |