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 {
265 typedef enum _WorkbookSettings {
685 virtual void ProgressNotify(
int converted_count,
int total_count) = 0;
733 static void Initialize(
const wchar_t* library_path,
const wchar_t* fx_engine_path = L
"");
949 #endif //defined(WIN32) static String GetVersion()
Get the version of Foxit PDF Conversion SDK.
bool enable_generate_page_rendered_break
A boolean value which indicates whether to generate the "lastRenderedPageBreak" marker in word format...
Definition: fs_pdf2office.h:156
bool enable_ml_recognition
A boolean value which indicates whether enable machine learning-based recognition functionality....
Definition: fs_pdf2office.h:571
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:557
Definition: fs_pdf2office.h:715
Definition: fs_common.h:1368
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:626
CFX_Object Object
Object type.
Definition: fs_basictypes.h:220
WorkbookSettings workbook_settings
An enumeration value which indicates the setting of the workbook for the conversion of PDF documents ...
Definition: fs_pdf2office.h:379
String thousands_separator
A string value which indicates being recognized as thousands separator during the conversion of PDF d...
Definition: fs_pdf2office.h:371
void Set(String decimal_symbol, String thousands_separator, WorkbookSettings workbook_settings, bool enable_aggressive_table_repair, bool include_watermarks)
Set value.
Definition: fs_pdf2office.h:334
PDF2PowerPointSettingData & operator=(const PDF2PowerPointSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:205
Create worksheet for each page.
Definition: fs_pdf2office.h:271
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:580
Definition: fs_pdf2office.h:38
PDF2WordSettingData(bool enable_retain_page_layout, bool enable_generate_headers_and_footers, bool enable_generate_footnotes_and_endnotes, bool enable_generate_page_rendered_break, int max_blank_paragraphs_per_page_bottom)
Constructor, with parameters.
Definition: fs_pdf2office.h:67
bool enable_adapt_to_largest_page
A boolean value that indicates whether adapt content of smaller pages to the largest page size during...
Definition: fs_pdf2office.h:254
void Set(bool enable_aggressively_split_sections, bool enable_adapt_to_largest_page)
Set value.
Definition: fs_pdf2office.h:229
File reading interface.
Definition: fx_stream.h:587
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, bool enable_matching_system_fonts)
Set value.
Definition: fs_pdf2office.h:532
PDF2OfficeSettingData()
Constructor.
Definition: fs_pdf2office.h:407
WIDE STRING CLASS.
Definition: fx_string.h:1461
PDF2ExcelSettingData(String decimal_symbol, String thousands_separator, WorkbookSettings workbook_settings, bool enable_aggressive_table_repair, bool include_watermarks)
Constructor, with parameters.
Definition: fs_pdf2office.h:295
int max_blank_paragraphs_per_page_bottom
Specifies the maximum number of blank paragraphs that can be placed at the bottom of each page when c...
Definition: fs_pdf2office.h:166
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:144
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:112
bool include_images
A boolean value which indicates whether to include images in PDF documents for converting PDF documen...
Definition: fs_pdf2office.h:637
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:589
int timeout
Milliseconds for timeout used for PDF Conversion.
Definition: fs_pdf2office.h:650
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:267
File stream interface, reading & writing.
Definition: fx_stream.h:692
PDF2WordSettingData word_setting_data
A setting data object that used for converting PDF documents to Word format documents.
Definition: fs_pdf2office.h:597
PDF2ExcelSettingData excel_setting_data
A setting data object that used for converting PDF documents to Excel format documents.
Definition: fs_pdf2office.h:613
PDF2WordSettingData & operator=(const PDF2WordSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:82
PDF2OfficeSettingData & operator=(const PDF2OfficeSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:477
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:195
PDF2ExcelSettingData()
Constructor.
Definition: fs_pdf2office.h:275
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:605
Definition: fs_basictypes.h:451
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, bool enable_matching_system_fonts)
Constructor, with parameters.
Definition: fs_pdf2office.h:453
WorkbookSettings
Enumeration for Excel workbook settings.
Definition: fs_pdf2office.h:265
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:173
PDF2PowerPointSettingData(bool enable_aggressively_split_sections, bool enable_adapt_to_largest_page)
Constructor, with parameters.
Definition: fs_pdf2office.h:193
static void Initialize(const wchar_t *library_path, const wchar_t *fx_engine_path=L"")
Initialize Foxit PDF Conversion.
Definition: fs_pdf2office.h:258
bool enable_aggressively_split_sections
A boolean value which indicates whether split sections aggressively for the conversion of PDF documen...
Definition: fs_pdf2office.h:242
Foxit namespace.
Definition: fs_taggedpdf.h:27
PDF2WordSettingData()
Constructor.
Definition: fs_pdf2office.h:41
BYTE STRING CLASS.
Definition: fx_string.h:317
bool enable_matching_system_fonts
A boolean value that indicates whether to accurately match system fonts when converting PDF documents...
Definition: fs_pdf2office.h:661
Create worksheet for each table.
Definition: fs_pdf2office.h:269
#define NULL
The null-pointer value.
Definition: fx_system.h:792
bool include_watermarks
A boolean value that indicates whether to include watermarks during the conversion of PDF documents t...
Definition: fs_pdf2office.h:400
Definition: fs_pdf2office.h:668
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:135
Definition: fs_pdf2office.h:404
String decimal_symbol
A string value which indicates being recognized as decimal during the conversion of PDF documents to ...
Definition: fs_pdf2office.h:355
Definition: fs_pdf2office.h:693
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:126
Definition: fs_pdf2office.h:170
PDF2ExcelSettingData & operator=(const PDF2ExcelSettingData &data)
Assign operator.
Definition: fs_pdf2office.h:310
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...
bool enable_aggressive_table_repair
A boolean value that indicates whether aggressive table repair is enabled during the conversion of PD...
Definition: fs_pdf2office.h:389