Conversion API.
More...
Go to the source code of this file.
|
void | PDF::ConvertPdfToWord (const PDF::Document &input, const PDPageRange *pages, const std::filesystem::path &outputFile, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to Word format.
|
|
void | PDF::ConvertPdfToExcel (const PDF::Document &input, const PDPageRange *pages, ConvertPdfToExcelType convertType, bool keepTablesOnly, const std::filesystem::path &outputFile, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to Excel format.
|
|
void | PDF::ConvertPdfToPowerPoint (const PDF::Document &input, const PDPageRange *pages, const std::filesystem::path &outputFile, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to PowerPoint format.
|
|
void | PDF::ConvertPdfToHtml (const PDF::Document &input, const PDPageRange *pages, const std::filesystem::path &outputFolder, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to HTML format.
|
|
void | PDF::ConvertPdfToRtf (const PDF::Document &input, const PDPageRange *pages, const std::filesystem::path &outputFile, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to RTF format.
|
|
void | PDF::ConvertPdfToText (const PDF::Document &input, const PDPageRange *pages, const std::wstring &pageDivider, bool convertCroppedText, const std::filesystem::path &outputFile, PDF::ProgressMonitor *progress=nullptr) |
| Converts a PDF document to plain text format.
|
|
◆ ConvertPdfToExcelType
The type of conversion to perform when converting a PDF document to Excel format.
Enumerator |
---|
TablePerSheet | Each table is converted to a separate sheet.
|
PagePerSheet | Each page is converted to a separate sheet.
|
DocumentPerSheet | The entire document is converted to a single sheet.
|
◆ ConvertPdfToExcel()
Converts a PDF document to Excel format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
convertType | The type of conversion to perform (TablePerSheet, PagePerSheet, DocumentPerSheet). |
keepTablesOnly | Whether to keep only the tables in the converted document. |
outputFile | The path of the output Excel file. |
progress | An optional progress monitor for tracking the conversion progress. |
◆ ConvertPdfToHtml()
Converts a PDF document to HTML format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
outputFolder | The folder where the HTML files will be saved. |
progress | An optional progress monitor for tracking the conversion progress. |
◆ ConvertPdfToPowerPoint()
Converts a PDF document to PowerPoint format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
outputFile | The path of the output PowerPoint file. |
progress | An optional progress monitor for tracking the conversion progress. |
◆ ConvertPdfToRtf()
Converts a PDF document to RTF format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
recognizeTables | Whether to recognize tables in the converted document. |
outputFile | The path of the output RTF file. |
progress | An optional progress monitor for tracking the conversion progress. |
◆ ConvertPdfToText()
void PDF::ConvertPdfToText |
( |
const PDF::Document & | input, |
|
|
const PDPageRange * | pages, |
|
|
const std::wstring & | pageDivider, |
|
|
bool | convertCroppedText, |
|
|
const std::filesystem::path & | outputFile, |
|
|
PDF::ProgressMonitor * | progress = nullptr ) |
|
inline |
Converts a PDF document to plain text format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
pageDivider | The string used to separate pages in the output text. |
convertCroppedText | Whether to convert only the cropped text on each page. |
outputFile | The path of the output text file. |
progress | An optional progress monitor for tracking the conversion progress. |
◆ ConvertPdfToWord()
Converts a PDF document to Word format.
- Parameters
-
input | The input PDF document. |
pages | The range of pages to convert. Pass nullptr to convert all pages. |
outputFile | The path of the output Word file. |
progress | An optional progress monitor for tracking the conversion progress. |