PdfExtractor

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

SignatureDescription
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()boolReturns 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()boolReturns true if next image is present.
GetNextImage(outputFile: std::string)boolCalls 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()intCalls StartPage on this PdfExtractor instance.
StartPage(value: int)Calls StartPage(value) on this PdfExtractor instance.
EndPage()intCalls EndPage on this PdfExtractor instance.
EndPage(value: int)Calls EndPage(value) on this PdfExtractor instance.
ExtractTextMode()intCalls ExtractTextMode on this PdfExtractor instance.
ExtractTextMode(value: int)Calls ExtractTextMode(value) on this PdfExtractor instance.
Resolution()intCalls Resolution on this PdfExtractor instance.
Resolution(value: int)Calls Resolution(value) on this PdfExtractor instance.
Password()std::stringCalls Password on this PdfExtractor instance.
Password(value: std::string)Calls Password(value) on this PdfExtractor instance.
IsBidi()boolReturns true if bidi is set.

See Also