21 #ifndef FS_OFFICE2PDF_H_ 22 #define FS_OFFICE2PDF_H_ 23 #if defined(_WIN32) || defined(_WIN64) 33 using namespace common;
35 namespace conversion {
39 namespace office2pdf {
45 : is_generate_bookmark(false) {}
53 this->is_generate_bookmark = is_generate_bookmark;
74 void Set(
bool is_generate_bookmark) {
75 this->is_generate_bookmark = is_generate_bookmark;
92 : is_separate_workbook(false)
93 , is_output_hidden_worksheets(false) {}
103 this->is_separate_workbook = is_separate_workbook;
104 this->is_output_hidden_worksheets = is_output_hidden_worksheets;
105 this->worksheet_names = worksheet_names;
132 this->is_separate_workbook = is_separate_workbook;
133 this->is_output_hidden_worksheets = is_output_hidden_worksheets;
134 this->worksheet_names = worksheet_names;
164 : is_embed_font(false){}
177 this->resource_folder_path = resource_folder_path;
178 this->is_embed_font = is_embed_font;
179 this->word_setting_data = word_setting_data;
180 this->excel_setting_data = excel_setting_data;
211 this->resource_folder_path = resource_folder_path;
212 this->is_embed_font = is_embed_font;
213 this->word_setting_data = word_setting_data;
214 this->excel_setting_data = excel_setting_data;
276 static bool ConvertFromWord(
const wchar_t* src_word_file_path,
const wchar_t* src_file_password,
const wchar_t* saved_pdf_path,
const Office2PDFSettingData& setting_data);
318 static bool ConvertFromExcel(
const wchar_t* src_excel_file_path,
const wchar_t* src_file_password,
const wchar_t* saved_pdf_path,
const Office2PDFSettingData& setting_data);
360 static bool ConvertFromPowerPoint(
const wchar_t* src_ppt_file_path,
const wchar_t* src_file_password,
const wchar_t* saved_pdf_path,
const Office2PDFSettingData& setting_data);
388 #endif // defined(_WIN32) Excel2PDFSettingData(bool is_separate_workbook, bool is_output_hidden_worksheets, foxit::WStringArray worksheet_names)
Constructor, with parameters.
Definition: fs_office2pdf.h:102
CFX_Object Object
Object type.
Definition: fs_basictypes.h:145
bool is_embed_font
A boolean value which indicates whether to embed font in the converted file,Default value: false.
Definition: fs_office2pdf.h:231
Definition: fs_basictypes.h:152
void Set(bool is_generate_bookmark)
Set value.
Definition: fs_office2pdf.h:74
File reading interface.
Definition: fx_stream.h:566
WIDE STRING CLASS.
Definition: fx_string.h:1452
Office2PDFSettingData()
Constructor.
Definition: fs_office2pdf.h:163
void Set(bool is_separate_workbook, bool is_output_hidden_worksheets, foxit::WStringArray worksheet_names)
Set value.
Definition: fs_office2pdf.h:131
Word2PDFSettingData word_setting_data
A setting data object that used for converting Word format documents to PDF format documents.
Definition: fs_office2pdf.h:239
Excel2PDFSettingData()
Constructor.
Definition: fs_office2pdf.h:91
File stream interface, reading & writing.
Definition: fx_stream.h:669
void Set(const wchar_t *resource_folder_path, bool is_embed_font, Word2PDFSettingData word_setting_data, Excel2PDFSettingData excel_setting_data)
Set value.
Definition: fs_office2pdf.h:210
Excel2PDFSettingData excel_setting_data
A setting data object that used for converting Excel format documents to PDF format documents.
Definition: fs_office2pdf.h:247
Header file for common definitions and classes.
foxit::WStringArray worksheet_names
An array of specific worksheet names to be converted to PDF files.
Definition: fs_office2pdf.h:156
bool is_separate_workbook
A boolean value which indicates whether to export worksheets to separate PDF files.
Definition: fs_office2pdf.h:142
Definition: fs_basictypes.h:230
Office2PDFSettingData(const wchar_t *resource_folder_path, bool is_embed_font, Word2PDFSettingData word_setting_data, Excel2PDFSettingData excel_setting_data)
Constructor, with parameters.
Definition: fs_office2pdf.h:176
Word2PDFSettingData()
Constructor.
Definition: fs_office2pdf.h:44
Foxit namespace.
Definition: fs_basictypes.h:124
bool is_output_hidden_worksheets
A boolean value which indicates whether to output the hidden worksheets.
Definition: fs_office2pdf.h:149
WString resource_folder_path
A valid path of a folder which contains resource data files. This should not be an empty string.
Definition: fs_office2pdf.h:223
Definition: fs_office2pdf.h:160
Definition: fs_office2pdf.h:88
Definition: fs_office2pdf.h:257
bool is_generate_bookmark
A boolean value which indicates whether to export bookmarks to converted PDF file.
Definition: fs_office2pdf.h:84
Definition: fs_office2pdf.h:41
Word2PDFSettingData(bool is_generate_bookmark)
Constructor, with parameters.
Definition: fs_office2pdf.h:52