14 #ifndef FS_PDF2OFFICE_H_ 15 #define FS_PDF2OFFICE_H_ 16 #if defined(_WIN32) || defined(_WIN64) || (defined(__linux__) && !defined(__ANDROID__)) 32 namespace conversion {
36 namespace pdf2office {
218 typedef enum _WorkbookSettings {
574 virtual void ProgressNotify(
int converted_count,
int total_count) = 0;
622 static void Initialize(
const wchar_t* library_path,
const wchar_t* fx_engine_path = L
"");
829 #endif //defined(WIN32) PDF2ExcelSettingData(String decimal_symbol, String thousands_separator, WorkbookSettings workbook_settings)
Constructor, with parameters.
Definition: fs_pdf2office.h:240
bool enable_generate_page_rendered_break
A boolean value which indicates whether to generate the "lastRenderedPageBreak" marker in word format...
Definition: fs_pdf2office.h:149
bool enable_ml_recognition
A boolean value which indicates whether enable machine learning-based recognition functionality....
Definition: fs_pdf2office.h:471
WString metrics_data_folder_path
A valid path of a folder which contains metrics data files. This should not be an empty string.
Definition: fs_pdf2office.h:457
Definition: fs_pdf2office.h:604
Definition: fs_common.h:1273
virtual bool CheckUserPermissions(uint32 user_permissions)=0
Check user permissions to decide whether to proceed with the PDF to Office conversion.
bool enable_trailing_space
A boolean value which indicates whether to add trailing spaces from lines in paragraphs for convertin...
Definition: fs_pdf2office.h:526
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
WorkbookSettings workbook_settings
An enumeration value which indicates the setting of the workbook for the conversion of PDF documents ...
Definition: fs_pdf2office.h:312
String thousands_separator
A string value which indicates being recognized as thousands separator during the conversion of PDF d...
Definition: fs_pdf2office.h:304
PDF2PowerPointSettingData & operator=(const PDF2PowerPointSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:179
Create worksheet for each page.
Definition: fs_pdf2office.h:224
common::Range page_range
A range object that specifies some pages. These pages will be used to convert PDF documents to office...
Definition: fs_pdf2office.h:480
Definition: fs_pdf2office.h:38
void Set(String decimal_symbol, String thousands_separator, WorkbookSettings workbook_settings)
Set value.
Definition: fs_pdf2office.h:269
void Set(const wchar_t *metrics_data_folder_path, bool enable_ml_recognition, const common::Range &page_range, bool include_pdf_comments, const PDF2WordSettingData &word_setting_data, const PDF2PowerPointSettingData &power_point_setting_data, const PDF2ExcelSettingData &excel_setting_data, bool enable_trailing_space, bool include_images, int timeout)
Set value.
Definition: fs_pdf2office.h:434
File reading interface.
Definition: fx_stream.h:570
PDF2OfficeSettingData()
Constructor.
Definition: fs_pdf2office.h:319
WIDE STRING CLASS.
Definition: fx_string.h:1461
bool enable_generate_footnotes_and_endnotes
A boolean value which indicates whether convert the recognized footnotes and endnotes from PDF docume...
Definition: fs_pdf2office.h:137
void Set(bool enable_aggressively_split_sections)
Set value.
Definition: fs_pdf2office.h:195
PDF2OfficeSettingData(const wchar_t *metrics_data_folder_path, bool enable_ml_recognition, const common::Range &page_range, bool include_pdf_comments, const PDF2WordSettingData &word_setting_data, const PDF2PowerPointSettingData &power_point_setting_data, const PDF2ExcelSettingData &excel_setting_data, bool enable_trailing_space, bool include_images, int timeout)
Constructor, with parameters.
Definition: fs_pdf2office.h:361
void Set(bool enable_retain_page_layout, bool enable_generate_headers_and_footers, bool enable_generate_footnotes_and_endnotes, bool enable_generate_page_rendered_break)
Set value.
Definition: fs_pdf2office.h:106
PDF2WordSettingData(bool enable_retain_page_layout, bool enable_generate_headers_and_footers, bool enable_generate_footnotes_and_endnotes, bool enable_generate_page_rendered_break)
Constructor, with parameters.
Definition: fs_pdf2office.h:65
bool include_images
A boolean value which indicates whether to include images in PDF documents for converting PDF documen...
Definition: fs_pdf2office.h:537
bool include_pdf_comments
A boolean value which indicates whether to include PDF documents comments for the conversion of PDF d...
Definition: fs_pdf2office.h:489
int timeout
Milliseconds for timeout used for PDF Conversion.
Definition: fs_pdf2office.h:550
PDF2PowerPointSettingData(bool enable_aggressively_split_sections)
Constructor, with parameters.
Definition: fs_pdf2office.h:168
virtual bool NeedToPause()=0
A callback function used to pause the current conversion progress.
virtual void ProgressNotify(int converted_count, int total_count)=0
A callback function used to notify the current conversion progress.
Create single worksheet for the document.
Definition: fs_pdf2office.h:220
File stream interface, reading & writing.
Definition: fx_stream.h:675
PDF2WordSettingData word_setting_data
A setting data object that used for converting PDF documents to Word format documents.
Definition: fs_pdf2office.h:497
PDF2ExcelSettingData excel_setting_data
A setting data object that used for converting PDF documents to Excel format documents.
Definition: fs_pdf2office.h:513
PDF2WordSettingData & operator=(const PDF2WordSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:79
PDF2OfficeSettingData & operator=(const PDF2OfficeSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:383
Definition: fs_common.h:373
static bool SetConvertCheckCallback(ConvertCheckCallback *convert_check_callback)
Set the callback object to check the PDF to Office conversion conditions.
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:196
PDF2ExcelSettingData()
Constructor.
Definition: fs_pdf2office.h:228
Header file for common definitions and classes.
static void Release()
Release all resource allocated by Foxit PDF Conversion.
static common::Progressive StartConvertToExcel(const wchar_t *src_pdf_path, const wchar_t *src_pdf_password, const wchar_t *saved_excel_file_path, const PDF2OfficeSettingData &setting_data, ConvertCallback *convert_callback=0)
Start to convert a PDF file to a Excel format file. Function PDF2Office::Initialize must be called be...
PDF2PowerPointSettingData power_point_setting_data
A setting data object that used for converting PDF documents to Power Point format documents.
Definition: fs_pdf2office.h:505
Definition: fs_basictypes.h:443
WorkbookSettings
Enumeration for Excel workbook settings.
Definition: fs_pdf2office.h:218
static common::Progressive StartConvertToWord(const wchar_t *src_pdf_path, const wchar_t *src_pdf_password, const wchar_t *saved_word_file_path, const PDF2OfficeSettingData &setting_data, ConvertCallback *convert_callback=0)
Start to convert a PDF file to a Word format file. Function PDF2Office::Initialize must be called bef...
PDF2PowerPointSettingData()
Constructor.
Definition: fs_pdf2office.h:156
static void Initialize(const wchar_t *library_path, const wchar_t *fx_engine_path=L"")
Initialize Foxit PDF Conversion.
Definition: fs_pdf2office.h:211
bool enable_aggressively_split_sections
A boolean value which indicates whether split sections aggressively for the conversion of PDF documen...
Definition: fs_pdf2office.h:207
Foxit namespace.
Definition: fs_taggedpdf.h:27
PDF2WordSettingData()
Constructor.
Definition: fs_pdf2office.h:41
BYTE STRING CLASS.
Definition: fx_string.h:317
Create worksheet for each table.
Definition: fs_pdf2office.h:222
#define NULL
The null-pointer value.
Definition: fx_system.h:792
Definition: fs_pdf2office.h:557
bool enable_generate_headers_and_footers
A boolean value which indicates whether convert the recognized headers and footers from PDF documents...
Definition: fs_pdf2office.h:128
Definition: fs_pdf2office.h:316
String decimal_symbol
A string value which indicates being recognized as decimal during the conversion of PDF documents to ...
Definition: fs_pdf2office.h:288
Definition: fs_pdf2office.h:582
bool enable_retain_page_layout
A boolean value which indicates whether retain page layout for the conversion of PDF documents to Wor...
Definition: fs_pdf2office.h:119
Definition: fs_pdf2office.h:153
PDF2ExcelSettingData & operator=(const PDF2ExcelSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:253
static common::Progressive StartConvertToPowerPoint(const wchar_t *src_pdf_path, const wchar_t *src_pdf_password, const wchar_t *saved_ppt_file_path, const PDF2OfficeSettingData &setting_data, ConvertCallback *convert_callback=0)
Start to convert a PDF file to a PowerPoint format file. Function PDF2Office::Initialize must be call...