Foxit PDF Conversion SDK
fs_office2pdf.h
Go to the documentation of this file.
1 
21 #ifndef FS_OFFICE2PDF_H_
22 #define FS_OFFICE2PDF_H_
23 #if defined(_WIN32) || defined(_WIN64)
24 
25 #include "common/fs_common.h"
26 
32 namespace foxit {
33  using namespace common;
34 
35 namespace conversion {
39 namespace office2pdf {
41 class Office2PDFSettingData FS_FINAL : public Object{
42  public:
45  : is_embed_font(false){}
46 
55  Office2PDFSettingData(const wchar_t* resource_folder_path, bool is_embed_font) {
56  this->resource_folder_path = resource_folder_path;
57  this->is_embed_font = is_embed_font;
58  }
59 
67  Office2PDFSettingData &operator = (const Office2PDFSettingData& data) {
68  resource_folder_path = data.resource_folder_path;
69  is_embed_font = data.is_embed_font;
70  return (*this);
71  }
72 
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;
86  }
87 
95 
103 };
104 
112 class Office2PDF FS_FINAL : public Base{
113  public:
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);
132 
154  static bool ConvertFromWord(file::ReaderCallback* src_word_reader, const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream, const Office2PDFSettingData& setting_data);
155 
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);
174 
196  static bool ConvertFromExcel(file::ReaderCallback* src_excel_reader, const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream, const Office2PDFSettingData& setting_data);
197 
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);
216 
238  static bool ConvertFromPowerPoint(file::ReaderCallback* src_ppt_reader, const wchar_t* src_file_password, file::StreamCallback* saved_pdf_file_stream, const Office2PDFSettingData& setting_data);
239 };
240 };
241 }
242 }
243 #endif // defined(_WIN32)
244 #endif
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:112