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:
44  Office2PDFSettingData()
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 
94  WString resource_folder_path;
95 
102  bool is_embed_font;
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
CFX_WideString WString
Wide string.
Definition: fs_basictypes.h:81
Header file for common definitions and classes.
Foxit namespace.
Definition: fs_basictypes.h:58