Foxit PDF SDK
fs_convert.h
浏览该文件的文档.
1 
15 #ifndef FS_CONVERT_H_
16 #define FS_CONVERT_H_
17 
18 #include "common/fs_common.h"
19 #include "pdf/fs_pdfdoc.h"
20 #include "pdf/fs_pdfpage.h"
21 
27 namespace foxit {
31 namespace addon {
35 namespace conversion {
37 class HTML2PDFSettingData FS_FINAL : public Object{
38  public:
44  typedef enum _HTML2PDFPageMode {
50 
56  typedef enum _HTML2PDFScalingMode {
64 
70  typedef enum _HTML2PDFEncodingFormat {
220 
226  typedef enum _HTML2PDFMediaStyle {
232 
233 
236  : page_width(0)
237  , page_height(0)
238  , is_to_page_scale(false)
239  , page_margin(0.0f, 0.0f, 0.0f, 0.0f)
240  , rotate_degrees(common::e_Rotation0)
241  , is_convert_link(false)
242  , is_generate_tag(false)
244  , to_generate_bookmarks(false)
247  , to_render_images(true)
249  , to_set_headerfooter(false)
250  , headerfooter_title(L"")
251  , headerfooter_url(L"")
252  , bookmark_root_name(L"")
253  , to_resize_objects(false)
254  , to_print_background(true)
255  , to_optimize_tag_tree(false)
257  , to_load_active_content(false)
258  , to_disable_sandbox(true)
259  , to_use_blacklist(false)
260  , to_hide_header(false)
261  , to_hide_footer(false)
262  , to_deny_local_file_access(false) {}
263 
306  const wchar_t* headerfooter_url, const wchar_t* bookmark_root_name, bool to_resize_objects, bool to_print_background, bool to_optimize_tag_tree,
309  this->page_width = page_width;
310  this->page_height = page_height;
311  this->is_to_page_scale = is_to_page_scale;
312  this->page_margin = page_margin;
313  this->is_convert_link = is_convert_link;
314  this->rotate_degrees = rotate_degrees;
315  this->is_generate_tag = is_generate_tag;
316  this->page_mode = page_mode;
317  this->to_generate_bookmarks = to_generate_bookmarks;
318  this->scaling_mode = scaling_mode;
319  this->encoding_format = encoding_format;
320  this->to_render_images = to_render_images;
321  this->to_remove_underline_for_link = to_remove_underline_for_link;
322  this->to_set_headerfooter = to_set_headerfooter;
323  this->headerfooter_title = headerfooter_title;
324  this->headerfooter_url = headerfooter_url;
325  this->bookmark_root_name = bookmark_root_name;
326  this->to_resize_objects = to_resize_objects;
327  this->to_print_background = to_print_background;
328  this->to_optimize_tag_tree = to_optimize_tag_tree;
329  this->media_style = media_style;
330  this->to_load_active_content = to_load_active_content;
331  this->to_disable_sandbox = to_disable_sandbox;
332  this->to_use_blacklist = to_use_blacklist;
333  this->to_hide_header = to_hide_header;
334  this->to_hide_footer = to_hide_footer;
335  this->to_deny_local_file_access = to_deny_local_file_access;
336  }
337 
346  page_width = data.page_width;
347  page_height = data.page_height;
349  page_margin = data.page_margin;
353  page_mode = data.page_mode;
355  scaling_mode = data.scaling_mode;
366  media_style = data.media_style;
373  return (*this);
374  }
375 
418  const wchar_t* headerfooter_title, const wchar_t* headerfooter_url, const wchar_t* bookmark_root_name, bool to_resize_objects, bool to_print_background, bool to_optimize_tag_tree,
421  this->page_width = page_width;
422  this->page_height = page_height;
423  this->is_to_page_scale = is_to_page_scale;
424  this->page_margin = page_margin;
425  this->is_convert_link = is_convert_link;
426  this->rotate_degrees = rotate_degrees;
427  this->is_generate_tag = is_generate_tag;
428  this->page_mode = page_mode;
429  this->to_generate_bookmarks = to_generate_bookmarks;
430  this->scaling_mode = scaling_mode;
431  this->encoding_format = encoding_format;
432  this->to_render_images = to_render_images;
433  this->to_remove_underline_for_link = to_remove_underline_for_link;
434  this->to_set_headerfooter = to_set_headerfooter;
435  this->headerfooter_title = headerfooter_title;
436  this->headerfooter_url = headerfooter_url;
437  this->bookmark_root_name = bookmark_root_name;
438  this->to_resize_objects = to_resize_objects;
439  this->to_print_background = to_print_background;
440  this->to_optimize_tag_tree = to_optimize_tag_tree;
441  this->media_style = media_style;
442  this->to_load_active_content = to_load_active_content;
443  this->to_disable_sandbox = to_disable_sandbox;
444  this->to_use_blacklist = to_use_blacklist;
445  this->to_hide_header = to_hide_header;
446  this->to_hide_footer = to_hide_footer;
447  this->to_deny_local_file_access = to_deny_local_file_access;
448  }
449 
455  float page_width;
456 
464  float page_height;
465 
473 
481 
487 
490 
493 
499 
502 
508 
513 
516 
519 
522 
525 
528 
531 
534 
537 
540 
546 
555 
562 
590 
593 
596 
605 };
606 
608 class TXT2PDFSettingData FS_FINAL : public Object {
609  public:
612  : page_width(0)
613  , page_height(0)
614  , text_size(0)
615  , text_color(0xFF000000)
616  , linespace(0)
617  , is_break_page(false) {
618  }
619 
635  ARGB text_color, float linespace, bool is_break_page) {
636  this->page_width = page_width;
637  this->page_height = page_height;
638  this->page_margin = page_margin;
639  this->font = font;
640  this->text_size = text_size;
641  this->text_color = text_color;
642  this->linespace = linespace;
643  this->is_break_page = is_break_page;
644  }
645 
654  page_width = data.page_width;
655  page_height = data.page_height;
656  page_margin = data.page_margin;
657  font = data.font;
658  text_size = data.text_size;
659  text_color = data.text_color;
660  linespace = data.linespace;
662  return (*this);
663  }
664 
680  ARGB text_color, float linespace, bool is_break_page) {
681  this->page_width = page_width;
682  this->page_height = page_height;
683  this->page_margin = page_margin;
684  this->font = font;
685  this->text_size = text_size;
686  this->text_color = text_color;
687  this->linespace = linespace;
688  this->is_break_page = is_break_page;
689  }
690 
692  float page_width;
693 
695  float page_height;
696 
704 
707 
709  float text_size;
710 
713 
715  float linespace;
716 
719 };
720 
727  public:
733  virtual void Release() = 0;
742  virtual void OnProgress(const wchar_t* message, float progress) = 0;
743  };
744 
751 class DWG2PDFSettingData FS_FINAL : public Object {
752  public:
758  typedef enum _DWG2PDFExportFlags {
786  e_FlagUseHLR = 0x0080,
804 
810  typedef enum _DWG2PDFExportHatchesType {
820 
826  typedef enum _DWG2PDFSearchableTextType {
834 
840  typedef enum _DWG2PDFColorPolicy {
848 
849 
854  : export_flags(1)
859  , is_active_layout(false)
860  , paper_width(0.0f)
861  , paper_height(0.0f)
863  , is_output_progress(true)
865 
874  export_flags = data.export_flags;
880  output_title = data.output_title;
886  paper_width = data.paper_width;
887  paper_height = data.paper_height;
888  color_policy = data.color_policy;
891  return (*this);
892  }
893 
900 
909 
920 
931 
942 
947 
952 
957 
962 
967 
972 
977 
985  float paper_width;
986 
995 
1004 
1011 
1017 };
1018 
1019 #if defined(_WIN32) || defined(_WIN64) || defined(__linux__)
1020 
1022 class Word2PDFSettingData FS_FINAL : public Object{
1023  public:
1029  typedef enum _ConvertOptimizeOption {
1035 
1041  typedef enum _ConvertContentOption {
1047 
1053  typedef enum _ConvertBookmarkOption {
1068 
1069 
1072  : include_doc_props(false)
1076  , convert_to_pdfa(false)
1077  , disable_vba_code(false)
1078  {}
1079 
1099  bool convert_to_pdfa, bool disable_vba_code) {
1100  this->include_doc_props = include_doc_props;
1101  this->optimize_option = optimize_option;
1102  this->content_option = content_option;
1103  this->bookmark_option = bookmark_option;
1104  this->convert_to_pdfa = convert_to_pdfa;
1105  this->disable_vba_code = disable_vba_code;
1106  }
1107 
1122  return (*this);
1123  }
1124 
1146  bool convert_to_pdfa, bool disable_vba_code) {
1147  this->include_doc_props = include_doc_props;
1148  this->optimize_option = optimize_option;
1149  this->content_option = content_option;
1150  this->bookmark_option = bookmark_option;
1151  this->convert_to_pdfa = convert_to_pdfa;
1152  this->disable_vba_code = disable_vba_code;
1153  }
1154 
1162 
1169 
1176 
1183 
1192 
1201 };
1202 
1204 class Excel2PDFSettingData FS_FINAL : public Object{
1205  public:
1211  typedef enum _ConvertQuality {
1216  } ConvertQuality;
1217 
1223  typedef enum _ScaleType {
1232  } ScaleType;
1233 
1234 
1237  : include_doc_props(false)
1239  , ignore_print_area(true)
1241  , convert_to_pdfa(false)
1242  , disable_vba_code(false)
1243  {}
1244 
1261  this->include_doc_props = include_doc_props;
1262  this->quality = quality;
1263  this->ignore_print_area = ignore_print_area;
1264  this->scale_type = scale_type;
1265  this->convert_to_pdfa = convert_to_pdfa;
1266  this->disable_vba_code = disable_vba_code;
1267  }
1268 
1278  quality = data.quality;
1280  scale_type = data.scale_type;
1283  return (*this);
1284  }
1285 
1304  this->include_doc_props = include_doc_props;
1305  this->quality = quality;
1306  this->ignore_print_area = ignore_print_area;
1307  this->scale_type = scale_type;
1308  this->convert_to_pdfa = convert_to_pdfa;
1310  }
1311 
1319 
1326 
1334 
1341 
1350 
1359 };
1360 
1362 class PowerPoint2PDFSettingData FS_FINAL : public Object{
1363  public:
1369  typedef enum _ConvertIntent {
1374  } ConvertIntent;
1375 
1382  typedef enum _HandoutOrder {
1393  } HandoutOrder;
1394 
1400  typedef enum _OutputType {
1419  } OutputType;
1420 
1421 
1425  , frame_output_slides(false)
1428  , output_hidden_slides(false)
1429  , include_doc_props(false)
1430  , disable_vba_code(false)
1431  {}
1432 
1451  this->intent = intent;
1452  this->frame_output_slides = frame_output_slides;
1453  this->handout_order = handout_order;
1454  this->output_hidden_slides = output_hidden_slides;
1455  this->output_type = output_type;
1456  this->include_doc_props = include_doc_props;
1457  this->disable_vba_code = disable_vba_code;
1458  }
1459 
1468  intent = data.intent;
1470  output_type = data.output_type;
1475  return (*this);
1476  }
1477 
1498  this->intent = intent;
1499  this->frame_output_slides = frame_output_slides;
1500  this->output_type = output_type;
1501  this->handout_order = handout_order;
1502  this->output_hidden_slides = output_hidden_slides;
1503  this->include_doc_props = include_doc_props;
1504  this->disable_vba_code = disable_vba_code;
1505  }
1506 
1512 
1520 
1527 
1545 
1553 
1561 
1570 };
1571 #endif // #if (defined(_WIN32) || defined(_WIN64))
1572 
1574 class HTML2PDFRelatedResource FS_FINAL : public Object{
1575  public:
1580  }
1581 
1591  this->related_resource_file = related_resource_file;
1592  this->resource_file_relative_path = resource_file_relative_path;
1593  }
1594 
1605  return (*this);
1606  }
1607 
1610 
1618 };
1619 
1622 
1623 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1624 
1625 class OFDConvertParam FS_FINAL : public Object{
1626  public:
1629  :is_embed_font(false) {}
1630 
1637  this->is_embed_font = is_embed_font;
1638  }
1639 
1647  void Set(bool is_embed_font) {
1648  this->is_embed_font = is_embed_font;
1649  }
1650 
1653 };
1654 #endif
1655 
1666 class Convert FS_FINAL : public Base {
1667  public:
1673  typedef enum _Office2PdfEngine {
1678  } Office2PdfEngine;
1679 
1680 
1698  static void FromHTML(const wchar_t* src_html, const wchar_t* engine_path, const wchar_t* cookies_path, const HTML2PDFSettingData& setting_data, const wchar_t* saved_pdf_path, int32 timeout);
1699 
1718  static void FromHTML(const wchar_t* src_html, const wchar_t* engine_path, foxit::common::file::ReaderCallback* cookies_reader, const HTML2PDFSettingData& setting_data, const wchar_t* saved_pdf_path, int32 timeout);
1719 
1738  static void FromHTML(const wchar_t* src_html, const wchar_t* engine_path, foxit::common::file::ReaderCallback* cookies_reader, const HTML2PDFSettingData& setting_data, foxit::common::file::WriterCallback* saved_pdf_filestream, int32 timeout);
1739 
1760  static void FromHTML(foxit::common::file::ReaderCallback* src_html, const HTML2PDFRelatedResourceArray& html2pdf_related_resource_array, const wchar_t* engine_path, foxit::common::file::ReaderCallback* cookies_reader, const HTML2PDFSettingData& setting_data, foxit::common::file::WriterCallback* saved_pdf_filestream, int32 timeout);
1761 
1771  static void FromTXT(const wchar_t* src_txt, const wchar_t* saved_pdf_path, const TXT2PDFSettingData& setting_data);
1772 
1781  static void FromImage(const wchar_t* src_img, const wchar_t* saved_pdf_path);
1782 
1793  static void FromImage(foxit::common::file::ReaderCallback* file_reader, foxit::common::file::WriterCallback* saved_pdf_filestream);
1794 
1809  static bool FromDWG(const wchar_t* engine_path, const wchar_t* src_dwg_path, const wchar_t* saved_pdf_path,
1810  const DWG2PDFSettingData& settings);
1811 
1812 #if (defined(_WIN32) || defined(_WIN64))
1813 
1828  static void FromWord(const wchar_t* src_word_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const Word2PDFSettingData& setting_data, Office2PdfEngine engine= e_Office2PdfEngineMicrosoft);
1829 
1845  static void FromExcel(const wchar_t* src_excel_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const Excel2PDFSettingData& setting_data, Office2PdfEngine engine= e_Office2PdfEngineMicrosoft);
1846 
1862  static void FromPowerPoint(const wchar_t* src_ppt_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const PowerPoint2PDFSettingData& setting_data, Office2PdfEngine engine= e_Office2PdfEngineMicrosoft);
1863 
1864 #elif defined(__linux__) && !(defined(__ANDROID__) || defined(_FS_IOS_) || defined(_SWIG_ANDROID_) || defined(_SWIG_IOS_))
1865 
1890  static void FromWord(const wchar_t* src_word_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const wchar_t* engine_path, const Word2PDFSettingData& setting_data, const wchar_t* fx_engine_path = L"", const wchar_t* specified_user_profile_path = L"");
1891 
1917  static void FromExcel(const wchar_t* src_excel_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const wchar_t* engine_path, const Excel2PDFSettingData& setting_data, const wchar_t* fx_engine_path = L"", const wchar_t* specified_user_profile_path = L"");
1918 
1944  static void FromPowerPoint(const wchar_t* src_ppt_file_path, const wchar_t* src_file_password, const wchar_t* saved_pdf_path, const wchar_t* engine_path, const PowerPoint2PDFSettingData& setting_data, const wchar_t* fx_engine_path = L"", const wchar_t* specified_user_profile_path = L"");
1945 #endif
1946 
1968  static bool ToXML(const wchar_t* src_pdf_path, const wchar_t* src_file_password, const wchar_t* saved_xml_path, const wchar_t* saved_image_folder_path, bool is_force_to_tagged_pdf);
1969 
1970 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1971 
1983  static bool FromOFD(const wchar_t* src_ofd_path, const wchar_t* password, const wchar_t* saved_pdf_file_path, OFDConvertParam convert_param);
1984 
1997  static bool ToOFD(const wchar_t* src_pdf_path, const wchar_t* password, const wchar_t* saved_ofd_file_path, OFDConvertParam convert_param);
1998 #endif // #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1999 
2000 };
2001 }
2002 }
2003 }
2004 #endif
编码格式:"JIS"。
Definition: fs_convert.h:98
bool include_doc_props
一个布尔值,指示是否在转换的PDF文档中包含Word文档属性。
Definition: fs_convert.h:1161
virtual void Release()=0
用于释放当前回调对象自身的回调函数。
可搜索文本类型:仅使用SHX字体显示的文本可搜索。
Definition: fs_convert.h:830
可搜索文本类型:仅使用TTF字体显示的文本可搜索。
Definition: fs_convert.h:832
ConvertBookmarkOption bookmark_option
用于Word到PDF转换的书签选项,指定是否将书签导出到转换的PDF文件, 以及书签的类型。请参考从Word2PDFSettingData::e_ConvertBookmarkOptionNone开始的...
Definition: fs_convert.h:1182
颜色策略:图形导出为单色PDF文件。
Definition: fs_convert.h:844
uint32 export_flags
用于转换的PDF文档的导出标志。请参考从DWG2PDFSettingData::e_FlagEmbededTTF开始的值, 这可以是这些值中的一个或多个的组合。 也可以是0,表示标志中的所有位都是0。
Definition: fs_convert.h:899
void Set(float page_width, float page_height, bool is_to_page_scale, RectF page_margin, bool is_convert_link, common::Rotation rotate_degrees, bool is_generate_tag, HTML2PDFPageMode page_mode, bool to_generate_bookmarks, HTML2PDFScalingMode scaling_mode, HTML2PDFEncodingFormat encoding_format, bool to_render_images, bool to_remove_underline_for_link, bool to_set_headerfooter, const wchar_t *headerfooter_title, const wchar_t *headerfooter_url, const wchar_t *bookmark_root_name, bool to_resize_objects, bool to_print_background, bool to_optimize_tag_tree, HTML2PDFMediaStyle media_style, bool to_load_active_content, bool to_disable_sandbox, bool to_use_blacklist, bool to_hide_header, bool to_hide_footer, bool to_deny_local_file_access)
设置值。
Definition: fs_convert.h:415
编码格式:"X-KDDI-Shift_JIS"。
Definition: fs_convert.h:210
bool convert_to_pdfa
(保留)一个布尔值,指示是否转换为PDF/A文件或普通PDF文件。 目前,这是无用的,Foxit PDF SDK将视为false。
Definition: fs_convert.h:1191
编码格式:"EUC-CN"。
Definition: fs_convert.h:104
编码格式:"X-SoftBank-ISO-2022-JP"。
Definition: fs_convert.h:218
static void FromWord(const wchar_t *src_word_file_path, const wchar_t *src_file_password, const wchar_t *saved_pdf_path, const wchar_t *engine_path, const Word2PDFSettingData &setting_data, const wchar_t *fx_engine_path=L"", const wchar_t *specified_user_profile_path=L"")
将Word格式文件转换为PDF文件。
编码格式:"KOI8R"。
Definition: fs_convert.h:118
位9。启用内部PDF流的压缩。
Definition: fs_convert.h:788
bool is_convert_link
用于决定是否转换网页链接。
Definition: fs_convert.h:489
HTML2PDFScalingMode
用于将HTML转换为PDF的缩放模式枚举。
Definition: fs_convert.h:56
OutputType output_type
输出类型,用于指定PowerPoint文档的哪个组件(幻灯片、讲义、备注页或大纲) 将转换为PDF文档。请参考从PowerPoint2PDFSettingData::e_OutputSlides 开始的...
Definition: fs_convert.h:1526
void Set(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order, bool output_hidden_slides, bool include_doc_props, bool disable_vba_code)
设置值。
Definition: fs_convert.h:1496
媒体样式:屏幕。意味着PDF页面将以屏幕媒体样式显示。
Definition: fs_convert.h:228
文件写入接口。
Definition: fx_stream.h:470
bool to_deny_local_file_access
用于决定在转换HTML文件时是否拒绝本地文件访问。 在Linux x86平台上不支持。
Definition: fs_convert.h:604
DWG2PDFSearchableTextType
用于DWG到PDF转换的可搜索文本类型枚举。
Definition: fs_convert.h:826
编码格式:"VISUAL"。
Definition: fs_convert.h:152
页面缩放:缩放。这意味着HTML内容将被缩放以适应PDF页面大小。在此模式下,文本大小可能会改变。
Definition: fs_convert.h:60
编码格式:"X-DoCoMo-Shift_JIS"。
Definition: fs_convert.h:212
填充导出类型:将填充导出为三角形集合(矢量化器)。
Definition: fs_convert.h:814
HandoutOrder
用于指定PowerPoint到PDF转换时幻灯片在转换的讲义中出现的页面布局顺序的枚举。 讲义可用于在将PowerPoint转换为PDF时在一页上显示多个幻灯片。
Definition: fs_convert.h:1382
void Set(float page_width, float page_height, RectF page_margin, const common::Font &font, float text_size, ARGB text_color, float linespace, bool is_break_page)
设置值。
Definition: fs_convert.h:679
void * progress_callback
指向DWG2PDFProgressCallback对象的指针,用于接收DWG转换为PDF的进度。 此参数可以是NULL。
Definition: fs_convert.h:1016
DWG2PDFSearchableTextType searchable_text_type
搜索文本类型的类型。
Definition: fs_convert.h:941
ConvertOptimizeOption
用于Word到PDF转换的优化选项枚举(指定分辨率和质量)。
Definition: fs_convert.h:1029
DWG2PDFColorPolicy color_policy
用于转换的PDF文档的颜色策略。
Definition: fs_convert.h:1003
编码格式:"X-TAM-ELANGO"。
Definition: fs_convert.h:198
CFX_Object Object
对象类型。
Definition: fs_basictypes.h:221
bool is_break_page
用于决定在转换的PDF文档中遇到字符0x0c时是否插入分页符。
Definition: fs_convert.h:718
编码格式:"Latin2"。
Definition: fs_convert.h:76
WPS Office 自动化引擎。
Definition: fs_convert.h:1677
编码格式:"CP874"。
Definition: fs_convert.h:124
编码格式:"X-KDDI-ISO-2022-JP"。
Definition: fs_convert.h:216
float page_height
用于转换的PDF文档的页面高度。
Definition: fs_convert.h:695
bool to_optimize_tag_tree
用于决定是否优化标签树。
Definition: fs_convert.h:539
virtual void OnProgress(const wchar_t *message, float progress)=0
在DWG转换为PDF时调用的回调函数。
编码格式:"CP1257"。
Definition: fs_convert.h:142
foxit::WString output_creator
输出PDF文档的创建者,默认使用空字符串。
Definition: fs_convert.h:971
bool is_to_page_scale
用于决定是否缩放转换的PDF页面。
Definition: fs_convert.h:472
在以讲义类型转换PowerPoint时,转换时连续幻灯片 首先水平显示(按水平行排列)的讲义。
Definition: fs_convert.h:1387
颜色策略:图形导出为灰度PDF文件。原生颜色转换为灰度。
Definition: fs_convert.h:846
PDF文档相关定义和类的头文件。
float page_height
用于转换的PDF文档的页面高度(单位为1/72英寸)。
Definition: fs_convert.h:464
bool disable_vba_code
一个布尔值,决定是否禁用PowerPoint文档中VBA代码的执行。
Definition: fs_convert.h:1569
bool ignore_print_area
一个布尔值,指示在将Excel文档转换为PDF文件时是否忽略任何设置的打印区域。
Definition: fs_convert.h:1333
可搜索文本类型:无可搜索文本。
Definition: fs_convert.h:828
媒体样式:打印。意味着PDF页面将以打印媒体样式显示。
Definition: fs_convert.h:230
输出类型:每个讲义页包含四个幻灯片的讲义。
Definition: fs_convert.h:1414
填充导出类型:将填充导出为位图。
Definition: fs_convert.h:812
编码格式:"EUC"。
Definition: fs_convert.h:110
ConvertOptimizeOption optimize_option
Word转换为PDF的优化选项,指定转换的PDF文档的分辨率和质量。请参考从 Word2PDFSettingData::e_ConvertOptimizeOptionForPrint开始的值, 应该是这...
Definition: fs_convert.h:1168
bool convert_to_pdfa
(保留)一个布尔值,指示是否转换为PDF/A文件或普通PDF文件。 目前,这是无用的,Foxit PDF SDK将视为false。
Definition: fs_convert.h:1349
编码格式:"X-SoftBank-Shift_JIS"。
Definition: fs_convert.h:214
位8。确定软件是否对相应视口使用矢量隐藏线移除。
Definition: fs_convert.h:786
编码格式:"ISO-8859-11"。
Definition: fs_convert.h:148
编码格式:"BIG5_HKSCS"。
Definition: fs_convert.h:164
bool to_generate_bookmarks
用于决定是否生成书签。
Definition: fs_convert.h:501
编码格式:"TSCII"。
Definition: fs_convert.h:168
ScaleType scale_type
将Excel文档转换为PDF文件时Excel工作表的缩放类型。 请参考从Excel2PDFSettingData::e_ScaleTypeNone开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:1340
ConvertIntent intent
转换意图。请参考从PowerPoint2PDFSettingData::e_ConvertIntentPrint 开始的值,应该是这些值中的一个。
Definition: fs_convert.h:1511
输出类型:每个讲义页包含一个幻灯片的讲义。
Definition: fs_convert.h:1408
DWG2PDFExportHatchesType
用于DWG到PDF转换的填充导出类型枚举。
Definition: fs_convert.h:810
编码格式:"BHASKAR"。
Definition: fs_convert.h:180
bool is_generate_tag
用于决定是否生成标签。
Definition: fs_convert.h:492
优化选项:为屏幕转换,质量较低,文件大小较小。
Definition: fs_convert.h:1033
文件读取接口。
Definition: fx_stream.h:587
float page_width
用于转换的PDF文档的页面宽度(单位为1/72英寸)。
Definition: fs_convert.h:455
编码格式:"TAM"。
Definition: fs_convert.h:170
HTML2PDFSettingData()
构造函数。
Definition: fs_convert.h:235
宽字符串类
Definition: fx_string.h:1457
位2。启用TTF字体文本到几何形状的转换。
Definition: fs_convert.h:766
common::Rotation rotate_degrees
用于转换的PDF页面的旋转度数。请参考从common::e_Rotation0开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:486
DWG2PDFExportHatchesType other_export_hatches_type
其他(非实体)填充导出的类型。
Definition: fs_convert.h:919
位7。启用TTF字体程序嵌入PDF文件。通过删除未使用的部分来减少TTF字体(PDF文件较小,但编辑受限)。
Definition: fs_convert.h:782
bool frame_output_slides
一个布尔值,指示是否在转换的PDF文档中为输出幻灯片添加边框。
Definition: fs_convert.h:1519
static void FromHTML(const wchar_t *src_html, const wchar_t *engine_path, const wchar_t *cookies_path, const HTML2PDFSettingData &setting_data, const wchar_t *saved_pdf_path, int32 timeout)
将HTML格式文件或网页URL转换为PDF文件。
Office2PdfEngine
用于 Windows 平台将 Office 转换为 PDF 的引擎类型枚举。
Definition: fs_convert.h:1673
位4。启用简单几何优化(分离的线段合并为一条折线,贝塞尔曲线控制点)。
Definition: fs_convert.h:774
Excel2PDFSettingData()
构造函数。
Definition: fs_convert.h:1236
编码格式:"Latin4"。
Definition: fs_convert.h:80
bool to_hide_header
用于决定是否隐藏页眉。在Linux x86平台上不支持。
Definition: fs_convert.h:592
Microsoft Office 自动化引擎。
Definition: fs_convert.h:1675
bool is_active_layout
true表示仅导出活动布局,false表示不仅导出活动布局。默认值:false。
Definition: fs_convert.h:946
HTML2PDFEncodingFormat encoding_format
HTML编码格式。请参考从HTML2PDFSettingData::e_EncodingFormatDefault开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:512
编码格式:"Greek"。
Definition: fs_convert.h:90
编码格式:"UTF7"。
Definition: fs_convert.h:178
将一个工作表的所有行适合一页。
Definition: fs_convert.h:1229
编码格式:"HZ-GB-2312"。
Definition: fs_convert.h:194
输出类型:每个讲义页包含两个幻灯片的讲义。
Definition: fs_convert.h:1410
ScaleType
用于Excel到PDF转换中Excel文档中每个工作表的缩放类型枚举。
Definition: fs_convert.h:1223
编码格式:"GB18030"。
Definition: fs_convert.h:162
static void FromExcel(const wchar_t *src_excel_file_path, const wchar_t *src_file_password, const wchar_t *saved_pdf_path, const wchar_t *engine_path, const Excel2PDFSettingData &setting_data, const wchar_t *fx_engine_path=L"", const wchar_t *specified_user_profile_path=L"")
将Excel格式文件转换为PDF文件。
static void FromPowerPoint(const wchar_t *src_ppt_file_path, const wchar_t *src_file_password, const wchar_t *saved_pdf_path, const wchar_t *engine_path, const PowerPoint2PDFSettingData &setting_data, const wchar_t *fx_engine_path=L"", const wchar_t *specified_user_profile_path=L"")
将PowerPoint格式文件转换为PDF文件。
编码格式:"CP852"。
Definition: fs_convert.h:120
编码格式:默认。编码格式将在chromium中自动检测。
Definition: fs_convert.h:72
bool disable_vba_code
一个布尔值,决定是否禁用Word文档中VBA代码的执行。
Definition: fs_convert.h:1200
填充导出类型:将填充导出为PDF路径(仅限实体填充)。
Definition: fs_convert.h:816
编码格式:"ASCII-7-bit"。
Definition: fs_convert.h:116
编码格式:"JAGRAN"。
Definition: fs_convert.h:174
ConvertIntent
用于PowerPoint到PDF转换的意图枚举。
Definition: fs_convert.h:1369
优化选项:为打印转换,质量较高,文件大小较大。
Definition: fs_convert.h:1031
ConvertBookmarkOption
用于Word到PDF转换的书签选项枚举。
Definition: fs_convert.h:1053
编码格式:"EUC-JP"。
Definition: fs_convert.h:94
输出类型:每个讲义页包含三个幻灯片的讲义。
Definition: fs_convert.h:1412
编码格式:"CP932"。
Definition: fs_convert.h:126
bool include_doc_props
一个布尔值,指示是否在转换的PDF文档中包含Excel文档属性。
Definition: fs_convert.h:1318
float text_size
字体大小。如果有效,应该大于0。
Definition: fs_convert.h:709
输出类型:备注页。
Definition: fs_convert.h:1404
缩放模式:固定页面无缩放。在此模式下,HTML内容的文本大小不会改变。
Definition: fs_convert.h:58
DWG2PDFExportFlags
DWG到PDF导出标志的枚举。
Definition: fs_convert.h:758
编码格式:"X-TAM-WEBTAMIL"。
Definition: fs_convert.h:208
bool is_output_progress
一个布尔值,指示是否输出进度日志。 true表示输出进度日志,false表示不输出。 默认值:true。
Definition: fs_convert.h:1010
static bool FromOFD(const wchar_t *src_ofd_path, const wchar_t *password, const wchar_t *saved_pdf_file_path, OFDConvertParam convert_param)
将OFD文件转换为PDF文件。
HTML2PDFMediaStyle media_style
用于转换的PDF文档的媒体样式。请参考从HTML2PDFSettingData::e_MediaStyleScreen开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:545
RectF page_margin
用于转换的PDF文档的页面边距。
Definition: fs_convert.h:480
OutputType
用于PowerPoint到PDF转换的输出类型枚举。
Definition: fs_convert.h:1400
编码格式:"Unicode"。
Definition: fs_convert.h:108
编码格式:"CP866"。
Definition: fs_convert.h:122
static bool FromDWG(const wchar_t *engine_path, const wchar_t *src_dwg_path, const wchar_t *saved_pdf_path, const DWG2PDFSettingData &settings)
将DWG格式文件转换为PDF文件。
HTML2PDFPageMode
用于将HTML转换为PDF的页面模式枚举。
Definition: fs_convert.h:44
编码格式:"KOI8U"。
Definition: fs_convert.h:144
编码格式:"CP1256"。
Definition: fs_convert.h:140
编码格式:"CP1250"。
Definition: fs_convert.h:128
编码格式:"TAB"。
Definition: fs_convert.h:172
页面缩放:放大。这意味着PDF页面将被放大到HTML内容大小。在此模式下,HTML内容的文本大小不会改变。
Definition: fs_convert.h:62
HTML2PDFScalingMode scaling_mode
用于转换的PDF文档的缩放模式。请参考从HTML2PDFSettingData::e_ScalingModeNone开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:507
uint32 ARGB
ARGB 颜色类型,32 位,((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_basictypes.h:210
bool is_embed_font
是否在转换的文件中嵌入字体。true表示在转换的文件中嵌入字体,false表示不嵌入。
Definition: fs_convert.h:1652
意图:转换结果文件将用于屏幕显示。
Definition: fs_convert.h:1373
HTML2PDFEncodingFormat
用于将HTML转换为PDF的编码格式枚举。
Definition: fs_convert.h:70
foxit::WString output_subject
输出PDF文档的主题,默认使用空字符串。
Definition: fs_convert.h:961
HTML2PDFSettingData(float page_width, float page_height, bool is_to_page_scale, RectF page_margin, bool is_convert_link, common::Rotation rotate_degrees, bool is_generate_tag, HTML2PDFPageMode page_mode, bool to_generate_bookmarks, HTML2PDFScalingMode scaling_mode, HTML2PDFEncodingFormat encoding_format, bool to_render_images, bool to_remove_underline_for_link, bool to_set_headerfooter, const wchar_t *headerfooter_title, const wchar_t *headerfooter_url, const wchar_t *bookmark_root_name, bool to_resize_objects, bool to_print_background, bool to_optimize_tag_tree, HTML2PDFMediaStyle media_style, bool to_load_active_content, bool to_disable_sandbox, bool to_use_blacklist, bool to_hide_header, bool to_hide_footer, bool to_deny_local_file_access)
带参数的构造函数。
Definition: fs_convert.h:303
位10。启用内部PDF流的ASCIIHex编码。
Definition: fs_convert.h:790
编码格式:"CP1255"。
Definition: fs_convert.h:138
编码格式:"HTCHANAKYA"。
Definition: fs_convert.h:182
将一个工作表适合一页。
Definition: fs_convert.h:1231
编码格式:"CSN_369103"。
Definition: fs_convert.h:154
编码格式:"ISO-8859-8-I"。
Definition: fs_convert.h:150
将一个工作表的所有列适合一页。
Definition: fs_convert.h:1227
位15。在PDF中启用测量比例。
Definition: fs_convert.h:802
HTML2PDFPageMode page_mode
用于转换的页面模式。请参考从HTML2PDFSettingData::e_PageModeSinglePage开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:498
位1。启用TTF(True Type Font)程序嵌入PDF文件。整个TTF字体文件将被嵌入(PDF文件较大)。
Definition: fs_convert.h:762
foxit::WString output_producer
输出PDF文档的生产者,默认使用空字符串。
Definition: fs_convert.h:976
编码格式:"SJS"。
Definition: fs_convert.h:96
bool to_use_blacklist
用于决定是否使用黑名单。
Definition: fs_convert.h:589
bool to_set_headerfooter
用于决定是否设置页眉页脚。
Definition: fs_convert.h:521
static bool ToXML(const wchar_t *src_pdf_path, const wchar_t *src_file_password, const wchar_t *saved_xml_path, const wchar_t *saved_image_folder_path, bool is_force_to_tagged_pdf)
将PDF文件转换为XML格式文件。
foxit::WString output_keywords
输出PDF文档的关键词,默认使用空字符串。
Definition: fs_convert.h:966
编码格式:"UTF-32LE"。
Definition: fs_convert.h:190
Excel2PDFSettingData(bool include_doc_props, ConvertQuality quality, bool ignore_print_area, ScaleType scale_type, bool convert_to_pdfa, bool disable_vba_code)
带参数的构造函数。
Definition: fs_convert.h:1259
foxit::WString bookmark_root_name
书签的根名称。
Definition: fs_convert.h:530
bool to_print_background
用于决定是否打印背景。
Definition: fs_convert.h:536
输出类型:每个讲义页包含六个幻灯片的讲义。
Definition: fs_convert.h:1416
DWG2PDFExportHatchesType gradient_export_hatches_type
渐变填充导出的类型。
Definition: fs_convert.h:930
TXT2PDFSettingData & operator=(const TXT2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:653
bool to_hide_footer
用于决定是否隐藏页脚。在Linux x86平台上不支持。
Definition: fs_convert.h:595
编码格式:"UTF-32BE"。
Definition: fs_convert.h:188
在转换的PDF文件中不创建书签。
Definition: fs_convert.h:1055
转换Word文档而不包含标记。
Definition: fs_convert.h:1043
Word2PDFSettingData & operator=(const Word2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:1115
意图:转换结果文件将用于打印。
Definition: fs_convert.h:1371
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
RectF page_margin
用于转换的PDF文档的页面边距。
Definition: fs_convert.h:703
bool to_disable_sandbox
用于决定是否禁用沙盒。
Definition: fs_convert.h:561
填充导出类型:将填充导出为多边形(仅限实体填充)。
Definition: fs_convert.h:818
HandoutOrder handout_order
讲义顺序,用于指定幻灯片在转换的讲义中出现的页面布局顺序。 在将PowerPoint转换为PDF时,讲义可用于在一页上显示多个幻灯片。 请参考从PowerPoint2PDFSettingData::e_...
Definition: fs_convert.h:1544
DWG2PDFSettingData()
带参数的构造函数。
Definition: fs_convert.h:853
编码格式:"CP1252"。
Definition: fs_convert.h:132
common::Font font
字体对象。
Definition: fs_convert.h:706
编码格式:"ASCII"。
Definition: fs_convert.h:74
通用定义和类的头文件。
位12。如果启用,布局几何将缩放到纸张大小,否则将应用布局设置。
Definition: fs_convert.h:798
DWG2PDFSettingData & operator=(const DWG2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:873
编码格式:"BIG5"。
Definition: fs_convert.h:100
void Set(bool include_doc_props, ConvertQuality quality, bool ignore_print_area, ScaleType scale_type, bool convert_to_pdfa)
设置值。
Definition: fs_convert.h:1302
编码格式:"MACINTOSH"。
Definition: fs_convert.h:176
bool output_hidden_slides
一个布尔值,指示是否将隐藏的幻灯片转换到转换的PDF文档中。
Definition: fs_convert.h:1552
通过使用Word文档的每个标题在转换的PDF文件中创建书签。
Definition: fs_convert.h:1061
编码格式:"CP1254"。
Definition: fs_convert.h:136
static void FromTXT(const wchar_t *src_txt, const wchar_t *saved_pdf_path, const TXT2PDFSettingData &setting_data)
将TXT格式文件转换为PDF文件。
编码格式:"X-TAM-TMNEWS"。
Definition: fs_convert.h:206
位5。如果启用,图层支持将添加到PDF文件(需要1.5版本)。
Definition: fs_convert.h:776
HTML2PDFSettingData & operator=(const HTML2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:345
FX_INT32 int32
有符号 32 位整数。
Definition: fs_basictypes.h:194
float paper_height
用于转换的PDF文档的纸张高度。
Definition: fs_convert.h:994
Definition: fs_basictypes.h:449
DWG2PDFExportHatchesType export_hatches_type
实体填充导出的类型。
Definition: fs_convert.h:908
static void FromImage(const wchar_t *src_img, const wchar_t *saved_pdf_path)
将图像格式文件转换为PDF文件。
Word2PDFSettingData()
构造函数。
Definition: fs_convert.h:1071
编码格式:"X-TAM-LTTMBARANI"。
Definition: fs_convert.h:200
OFDConvertParam()
构造函数。
Definition: fs_convert.h:1628
void Set(bool include_doc_props, ConvertOptimizeOption optimize_option, ConvertContentOption content_option, ConvertBookmarkOption bookmark_option, bool convert_to_pdfa, bool disable_vba_code)
设置值。
Definition: fs_convert.h:1144
编码格式:"X-TAM-TBOOMIS"。
Definition: fs_convert.h:204
编码格式:"ISO-8859-13"。
Definition: fs_convert.h:156
PDF页面相关定义和类的头文件。
编码格式:"Hebrew"。
Definition: fs_convert.h:92
bool to_render_images
用于决定是否渲染图像。
Definition: fs_convert.h:515
ConvertContentOption content_option
用于Word到PDF转换的内容选项,指定Word文档的多少内容将转换为PDF文件。 请参考从Word2PDFSettingData::e_ConvertContentOptionOnlyContent开...
Definition: fs_convert.h:1175
PowerPoint2PDFSettingData()
构造函数。
Definition: fs_convert.h:1423
编码格式:"Latin3"。
Definition: fs_convert.h:78
ConvertQuality quality
Excel转换为PDF的质量。请参考从 Excel2PDFSettingData::e_ConvertQualityStandard开始的值, 应该是这些值中的一个。
Definition: fs_convert.h:1325
编码格式:"GBK"。
Definition: fs_convert.h:160
转换Word文档并包含标记。
Definition: fs_convert.h:1045
Definition: fs_common.h:1519
float paper_width
用于转换的PDF文档的纸张宽度。
Definition: fs_convert.h:985
不旋转。
Definition: fs_common.h:59
Rotation
旋转的枚举。
Definition: fs_common.h:57
Foxit命名空间。
Definition: fs_taggedpdf.h:27
Word2PDFSettingData(bool include_doc_props, ConvertOptimizeOption optimize_option, ConvertContentOption content_option, ConvertBookmarkOption bookmark_option, bool convert_to_pdfa, bool disable_vba_code)
带参数的构造函数。
Definition: fs_convert.h:1097
TXT2PDFSettingData(float page_width, float page_height, RectF page_margin, const common::Font &font, float text_size, ARGB text_color, float linespace, bool is_break_page)
带参数的构造函数。
Definition: fs_convert.h:634
bool to_load_active_content
用于决定是否加载活动内容。
Definition: fs_convert.h:554
编码格式:"ISO_2022_CN"。
Definition: fs_convert.h:166
DWG2PDFColorPolicy
用于DWG到PDF转换的颜色策略枚举。
Definition: fs_convert.h:840
TXT2PDFSettingData()
构造函数。
Definition: fs_convert.h:611
位13。创建线性化PDF文件。
Definition: fs_convert.h:800
编码格式:"X-TAM-SHREE"。
Definition: fs_convert.h:202
编码格式:"UTF-16LE"。
Definition: fs_convert.h:186
编码格式:"KSC"。
Definition: fs_convert.h:106
bool to_resize_objects
是否在渲染过程中启用与Javascript相关的对象调整大小功能。
Definition: fs_convert.h:533
编码格式:"ISO-2022-KR"。
Definition: fs_convert.h:158
编码格式:"Arabic"。
Definition: fs_convert.h:88
在以讲义类型转换PowerPoint时,转换时连续幻灯片 首先垂直显示(按垂直列排列)的讲义。
Definition: fs_convert.h:1392
foxit::WString output_title
输出PDF文档的标题,默认使用空字符串。
Definition: fs_convert.h:951
编码格式:"Latin6"。
Definition: fs_convert.h:84
HTML2PDFMediaStyle
用于将HTML转换为PDF的媒体样式枚举。
Definition: fs_convert.h:226
编码格式:"X-BINARYENC"。
Definition: fs_convert.h:192
编码格式:"GB"。
Definition: fs_convert.h:102
颜色策略:无颜色策略。图形以其原生颜色调色板导出(原样导出)。
Definition: fs_convert.h:842
#define NULL
空指针值。
Definition: fx_system.h:792
static bool ToOFD(const wchar_t *src_pdf_path, const wchar_t *password, const wchar_t *saved_ofd_file_path, OFDConvertParam convert_param)
将PDF文件转换为OFD文件。
用于将DWG转换为PDF的回调类。
Definition: fs_convert.h:726
输出类型:大纲视图。
Definition: fs_convert.h:1406
位11。启用超链接导出。
Definition: fs_convert.h:792
foxit::WString headerfooter_title
页眉页脚标题,作为中央页眉的内容。
Definition: fs_convert.h:524
编码格式:"CP1253"。
Definition: fs_convert.h:134
float page_width
用于转换的PDF文档的页面宽度。
Definition: fs_convert.h:692
bool disable_vba_code
一个布尔值,决定是否禁用Excel文档中VBA代码的执行。
Definition: fs_convert.h:1358
void Set(bool is_embed_font)
设置值。
Definition: fs_convert.h:1647
bool to_remove_underline_for_link
用于决定是否为链接移除下划线装饰。
Definition: fs_convert.h:518
bool include_doc_props
一个布尔值,指示是否在转换的PDF文档中包含PowerPoint文档属性。
Definition: fs_convert.h:1560
PowerPoint2PDFSettingData(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order, bool output_hidden_slides, bool include_doc_props, bool disable_vba_code)
带参数的构造函数。
Definition: fs_convert.h:1449
Definition: fs_convert.h:1666
输出类型:每个讲义页包含九个幻灯片的讲义。
Definition: fs_convert.h:1418
foxit::WString headerfooter_url
页眉页脚URL,作为左侧页脚的内容。
Definition: fs_convert.h:527
编码格式:"Latin5"。
Definition: fs_convert.h:82
Definition: fs_convert.h:1625
ARGB text_color
字体颜色。
Definition: fs_convert.h:712
通过使用Word文档的每个书签在转换的PDF文件中创建书签。
Definition: fs_convert.h:1066
位3。启用SHX字体文本到几何形状的转换。
Definition: fs_convert.h:770
编码格式:"ISO-8859-5"。
Definition: fs_convert.h:86
编码格式:"BIG5-CP950"。
Definition: fs_convert.h:114
foxit::WString output_author
输出PDF文档的作者,默认使用空字符串。
Definition: fs_convert.h:956
编码格式:"UTF-16BE"。
Definition: fs_convert.h:184
位6。如果启用,不可见图层将添加到PDF文件(需要1.5版本)。
Definition: fs_convert.h:778
float linespace
行间距。如果有效,应该大于0。
Definition: fs_convert.h:715
ConvertQuality
Excel转换为PDF的质量枚举。
Definition: fs_convert.h:1211
编码格式:"CNS"。
Definition: fs_convert.h:112
输出类型:幻灯片。
Definition: fs_convert.h:1402
ConvertContentOption
内容选项枚举,指定Word文档的多少内容将转换为PDF文档。
Definition: fs_convert.h:1041
编码格式:"CP1251"。
Definition: fs_convert.h:130
OFDConvertParam(bool is_embed_font)
带参数的构造函数。
Definition: fs_convert.h:1636
编码格式:"ISO-8859-15"。
Definition: fs_convert.h:146
Excel2PDFSettingData & operator=(const Excel2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:1276
Definition: fx_coordinates.h:771
编码格式:"X-UTF8UTF8"。
Definition: fs_convert.h:196
PowerPoint2PDFSettingData & operator=(const PowerPoint2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:1467