ComPDFKit Conversion C++ SDK 3.0.0
API Documentation
compdfkit_conversion.h
Go to the documentation of this file.
1#ifndef COMPDFKIT_CONVERSION_H
2#define COMPDFKIT_CONVERSION_H
3
4#include "library_manager.h"
5
6namespace compdfkit {
7namespace conversion{
8
12{
13public:
22 static base::ErrorCode StartPDFToWord(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
31 static base::ErrorCode StartPDFToWord(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
32
41 static base::ErrorCode StartPDFToExcel(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
50 static base::ErrorCode StartPDFToExcel(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
51
60 static base::ErrorCode StartPDFToPpt(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
69 static base::ErrorCode StartPDFToPpt(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
70
79 static base::ErrorCode StartPDFToHtml(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
88 static base::ErrorCode StartPDFToHtml(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
89
98 static base::ErrorCode StartPDFToImage(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
107 static base::ErrorCode StartPDFToImage(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
108
117 static base::ErrorCode StartPDFToMarkdown(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
126 static base::ErrorCode StartPDFToMarkdown(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
127
136 static base::ErrorCode StartPDFToRtf(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
145 static base::ErrorCode StartPDFToRtf(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
146
155 static base::ErrorCode StartPDFToTxt(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
164 static base::ErrorCode StartPDFToTxt(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
165
174 static base::ErrorCode StartPDFToJson(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
183 static base::ErrorCode StartPDFToJson(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
184
193 static base::ErrorCode StartPDFToSearchablePdf(const char* file_path, const char* password, const char* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
202 static base::ErrorCode StartPDFToSearchablePdf(const wchar_t* file_path, const wchar_t* password, const wchar_t* output_path, const base::ConvertOptions& options, COMOCRCallback callback = nullptr);
203
205 static void Cancel();
206private:
207 static COMHANDLE handle_;
208};
209
210}
211}
212
213#endif //COMPDFKIT_CONVERSION_H
Provides functionalities to convert PDF files into various formats such as Word, Excel,...
Definition compdfkit_conversion.h:12
static base::ErrorCode StartPDFToHtml(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an HTML document.
static base::ErrorCode StartPDFToMarkdown(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a Markdown document using wide-character strings.
static base::ErrorCode StartPDFToImage(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an image format.
static base::ErrorCode StartPDFToMarkdown(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a Markdown document.
static base::ErrorCode StartPDFToSearchablePdf(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a searchable PDF.
static base::ErrorCode StartPDFToHtml(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an HTML document using wide-character strings.
static base::ErrorCode StartPDFToTxt(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a plain text file.
static base::ErrorCode StartPDFToImage(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an image format using wide-character strings.
static base::ErrorCode StartPDFToJson(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a JSON file.
static base::ErrorCode StartPDFToExcel(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an Excel document.
static base::ErrorCode StartPDFToExcel(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an Excel document using wide-character strings.
static base::ErrorCode StartPDFToJson(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a JSON file using wide-character strings.
static base::ErrorCode StartPDFToRtf(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an RTF document.
static void Cancel()
Cancels any ongoing PDF conversion process.
static base::ErrorCode StartPDFToTxt(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a plain text file using wide-character strings.
static base::ErrorCode StartPDFToSearchablePdf(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a searchable PDF using wide-character strings.
static base::ErrorCode StartPDFToPpt(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a PowerPoint presentation.
static base::ErrorCode StartPDFToRtf(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to an RTF document using wide-character strings.
static base::ErrorCode StartPDFToPpt(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a PowerPoint presentation using wide-character strings.
static base::ErrorCode StartPDFToWord(const char *file_path, const char *password, const char *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a Word document.
static base::ErrorCode StartPDFToWord(const wchar_t *file_path, const wchar_t *password, const wchar_t *output_path, const base::ConvertOptions &options, COMOCRCallback callback=nullptr)
Starts the conversion of a PDF file to a Word document using wide-character strings.
bool(* COMOCRCallback)(const char *image_path, bool enable_ocr)
A callback function type for handling OCR operations on images.
Definition com_config_macros.h:31
#define COMPDFKIT_DECL
Definition com_config_macros.h:7
void * COMHANDLE
A generic handle type for managing various operations.
Definition com_config_macros.h:44
ErrorCode
Error code.
Definition base_type.h:33
Definition compdfkit_conversion.h:7
Definition base_type.h:6
Convert options.
Definition base_type.h:149