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_embed_font(false){}
56 this->resource_folder_path = resource_folder_path;
57 this->is_embed_font = is_embed_font;
83 void Set(
const wchar_t* resource_folder_path,
bool is_embed_font) {
84 this->resource_folder_path = resource_folder_path;
85 this->is_embed_font = is_embed_font;
131 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);
173 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);
215 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);
243 #endif // defined(_WIN32) CFX_Object Object
Object type.
Definition: fs_basictypes.h:79
bool is_embed_font
A boolean value which indicates whether to embed font in the converted file,Default value: false.
Definition: fs_office2pdf.h:102
File reading interface.
Definition: fx_stream.h:566
WIDE STRING CLASS.
Definition: fx_string.h:1452
Office2PDFSettingData()
Constructor.
Definition: fs_office2pdf.h:44
File stream interface, reading & writing.
Definition: fx_stream.h:669
void Set(const wchar_t *resource_folder_path, bool is_embed_font)
Set value.
Definition: fs_office2pdf.h:83
Office2PDFSettingData(const wchar_t *resource_folder_path, bool is_embed_font)
Constructor, with parameters.
Definition: fs_office2pdf.h:55
Header file for common definitions and classes.
Definition: fs_basictypes.h:161
Foxit namespace.
Definition: fs_basictypes.h:58
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:94
Definition: fs_office2pdf.h:41
Definition: fs_office2pdf.h:112