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 {
41 class Word2PDFSettingData FS_FINAL :
public Object{
45 : is_generate_bookmark(false) {}
52 Word2PDFSettingData(
bool is_generate_bookmark) {
53 this->is_generate_bookmark = is_generate_bookmark;
63 Word2PDFSettingData& operator = (
const Word2PDFSettingData& data) {
64 is_generate_bookmark = data.is_generate_bookmark;
74 void Set(
bool is_generate_bookmark) {
75 this->is_generate_bookmark = is_generate_bookmark;
84 bool is_generate_bookmark;
88 class Excel2PDFSettingData FS_FINAL :
public Object{
91 Excel2PDFSettingData()
92 : is_separate_workbook(false)
93 , is_output_hidden_worksheets(false) {}
102 Excel2PDFSettingData(
bool is_separate_workbook,
bool is_output_hidden_worksheets,
foxit::WStringArray worksheet_names) {
103 this->is_separate_workbook = is_separate_workbook;
104 this->is_output_hidden_worksheets = is_output_hidden_worksheets;
105 this->worksheet_names = worksheet_names;
115 Excel2PDFSettingData & operator = (
const Excel2PDFSettingData & data) {
116 is_separate_workbook = data.is_separate_workbook;
117 is_output_hidden_worksheets = data.is_output_hidden_worksheets;
118 worksheet_names = data.worksheet_names;
131 void Set(
bool is_separate_workbook,
bool is_output_hidden_worksheets,
foxit::WStringArray 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;
142 bool is_separate_workbook;
149 bool is_output_hidden_worksheets;
160 class Office2PDFSettingData FS_FINAL :
public Object{
163 Office2PDFSettingData()
164 : is_embed_font(false){}
176 Office2PDFSettingData(
const wchar_t* resource_folder_path,
bool is_embed_font, Word2PDFSettingData word_setting_data, Excel2PDFSettingData excel_setting_data) {
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;
190 Office2PDFSettingData &operator = (
const Office2PDFSettingData& data) {
191 resource_folder_path = data.resource_folder_path;
192 is_embed_font = data.is_embed_font;
193 word_setting_data = data.word_setting_data;
194 excel_setting_data = data.excel_setting_data;
210 void Set(
const wchar_t* resource_folder_path,
bool is_embed_font, Word2PDFSettingData word_setting_data, Excel2PDFSettingData 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;
239 Word2PDFSettingData word_setting_data;
247 Excel2PDFSettingData excel_setting_data;
257 class Office2PDF FS_FINAL :
public Base{
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);
299 static bool ConvertFromWord(file::ReaderCallback* src_word_reader,
const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream,
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);
341 static bool ConvertFromExcel(file::ReaderCallback* src_excel_reader,
const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream,
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);
383 static bool ConvertFromPowerPoint(file::ReaderCallback* src_ppt_reader,
const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream,
const Office2PDFSettingData& setting_data);
388 #endif // defined(_WIN32) CFX_Object Object
Object type.
Definition: fs_basictypes.h:145
Definition: fs_basictypes.h:152
CFX_WideString WString
Wide string.
Definition: fs_basictypes.h:147
Header file for common definitions and classes.
Foxit namespace.
Definition: fs_basictypes.h:124