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 {
46 e_PageModeSinglePage = 0,
48 e_PageModeMultiplePage = 1
49 } HTML2PDFPageMode;
50
56 typedef enum _HTML2PDFScalingMode {
58 e_ScalingModeNone = 0,
60 e_ScalingModeScale = 1,
62 e_ScalingModeEnlarge = 2
63 } HTML2PDFScalingMode;
64
70 typedef enum _HTML2PDFEncodingFormat {
72 e_EncodingFormatDefault = 0,
74 e_EncodingFormatASCII = 1,
76 e_EncodingFormatLatin2 = 2,
78 e_EncodingFormatLatin3 = 3,
80 e_EncodingFormatLatin4 = 4,
82 e_EncodingFormatLatin5 = 5,
84 e_EncodingFormatLatin6 = 6,
86 e_EncodingFormatISO_8859_5 = 7,
88 e_EncodingFormatArabic = 8,
90 e_EncodingFormatGreek = 9,
92 e_EncodingFormatHebrew = 10,
94 e_EncodingFormatEUC_JP = 11,
96 e_EncodingFormatSJS = 12,
98 e_EncodingFormatJIS = 13,
100 e_EncodingFormatBIG5 = 14,
102 e_EncodingFormatGB = 15,
104 e_EncodingFormatEUC_CN = 16,
106 e_EncodingFormatKSC = 17,
108 e_EncodingFormatUnicode = 18,
110 e_EncodingFormatEUC = 19,
112 e_EncodingFormatCNS = 20,
114 e_EncodingFormatBIG5_CP950 = 21,
116 e_EncodingFormatASCII_7_bit = 22,
118 e_EncodingFormatKOI8R = 23,
120 e_EncodingFormatCP852 = 24,
122 e_EncodingFormatCP866 = 25,
124 e_EncodingFormatCP874 = 26,
126 e_EncodingFormatCP932 = 27,
128 e_EncodingFormatCP1250 = 28,
130 e_EncodingFormatCP1251 = 29,
132 e_EncodingFormatCP1252 = 30,
134 e_EncodingFormatCP1253 = 31,
136 e_EncodingFormatCP1254 = 32,
138 e_EncodingFormatCP1255 = 33,
140 e_EncodingFormatCP1256 = 34,
142 e_EncodingFormatCP1257 = 35,
144 e_EncodingFormatKOI8U = 36,
146 e_EncodingFormatISO_8859_15 = 37,
148 e_EncodingFormatISO_8859_11 = 38,
150 e_EncodingFormatISO_8859_8_I = 39,
152 e_EncodingFormatVISUAL = 40,
154 e_EncodingFormatCSN_369103 = 41,
156 e_EncodingFormatISO_8859_13 = 42,
158 e_EncodingFormatISO_2022_KR = 43,
160 e_EncodingFormatGBK = 44,
162 e_EncodingFormatGB18030 = 45,
164 e_EncodingFormatBIG5_HKSCS = 46,
166 e_EncodingFormatISO_2022_CN = 47,
168 e_EncodingFormatTSCII = 48,
170 e_EncodingFormatTAM = 49,
172 e_EncodingFormatTAB = 50,
174 e_EncodingFormatJAGRAN = 51,
176 e_EncodingFormatMACINTOSH = 52,
178 e_EncodingFormatUTF7 = 53,
180 e_EncodingFormatBHASKAR = 54,
182 e_EncodingFormatHTCHANAKYA = 55,
184 e_EncodingFormatUTF_16BE = 56,
186 e_EncodingFormatUTF_16LE = 57,
188 e_EncodingFormatUTF_32BE = 58,
190 e_EncodingFormatUTF_32LE = 59,
192 e_EncodingFormatX_BINARYENC = 60,
194 e_EncodingFormatHZ_GB_2312 = 61,
196 e_EncodingFormatX_UTF8UTF8 = 62,
198 e_EncodingFormatX_TAM_ELANGO = 63,
200 e_EncodingFormatX_TAM_LTTMBARANI = 64,
202 e_EncodingFormatX_TAM_SHREE = 65,
204 e_EncodingFormatX_TAM_TBOOMIS = 66,
206 e_EncodingFormatX_TAM_TMNEWS = 67,
208 e_EncodingFormatX_TAM_WEBTAMIL = 68,
210 e_EncodingFormatX_KDDI_Shift_JIS = 69,
212 e_EncodingFormatX_DoCoMo_Shift_JIS = 70,
214 e_EncodingFormatX_SoftBank_Shift_JIS = 71,
216 e_EncodingFormatX_KDDI_ISO_2022_JP = 72,
218 e_EncodingFormatX_SoftBank_ISO_2022_JP = 73
219 } HTML2PDFEncodingFormat;
220
226 typedef enum _HTML2PDFMediaStyle {
228 e_MediaStyleScreen = 0,
230 e_MediaStylePrint = 1
231 } HTML2PDFMediaStyle;
232
233
235 HTML2PDFSettingData()
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)
243 , page_mode(e_PageModeSinglePage)
244 , to_generate_bookmarks(false)
245 , scaling_mode(e_ScalingModeScale)
246 , encoding_format(e_EncodingFormatDefault)
247 , to_render_images(true)
248 , to_remove_underline_for_link(false)
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)
256 , media_style(e_MediaStyleScreen)
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
303 HTML2PDFSettingData(float page_width, float page_height, bool is_to_page_scale, RectF page_margin,
304 bool is_convert_link, common::Rotation rotate_degrees, bool is_generate_tag, HTML2PDFPageMode page_mode, bool to_generate_bookmarks, HTML2PDFScalingMode scaling_mode,
305 HTML2PDFEncodingFormat encoding_format, bool to_render_images, bool to_remove_underline_for_link, bool to_set_headerfooter, const wchar_t* headerfooter_title,
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,
307 HTML2PDFMediaStyle media_style, bool to_load_active_content, bool to_disable_sandbox, bool to_use_blacklist,
308 bool to_hide_header, bool to_hide_footer, bool to_deny_local_file_access) {
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
345 HTML2PDFSettingData &operator = (const HTML2PDFSettingData& data) {
346 page_width = data.page_width;
347 page_height = data.page_height;
348 is_to_page_scale = data.is_to_page_scale;
349 page_margin = data.page_margin;
350 is_convert_link = data.is_convert_link;
351 rotate_degrees = data.rotate_degrees;
352 is_generate_tag = data.is_generate_tag;
353 page_mode = data.page_mode;
354 to_generate_bookmarks = data.to_generate_bookmarks;
355 scaling_mode = data.scaling_mode;
356 encoding_format = data.encoding_format;
357 to_render_images = data.to_render_images;
358 to_remove_underline_for_link = data.to_remove_underline_for_link;
359 to_set_headerfooter = data.to_set_headerfooter;
360 headerfooter_title = data.headerfooter_title;
361 headerfooter_url = data.headerfooter_url;
362 bookmark_root_name = data.bookmark_root_name;
363 to_resize_objects = data.to_resize_objects;
364 to_print_background = data.to_print_background;
365 to_optimize_tag_tree = data.to_optimize_tag_tree;
366 media_style = data.media_style;
367 to_load_active_content = data.to_load_active_content;
368 to_disable_sandbox = data.to_disable_sandbox;
369 to_use_blacklist = data.to_use_blacklist;
370 to_hide_header = data.to_hide_header;
371 to_hide_footer = data.to_hide_footer;
372 to_deny_local_file_access = data.to_deny_local_file_access;
373 return (*this);
374 }
375
415 void Set(float page_width, float page_height, bool is_to_page_scale, RectF page_margin,
416 bool is_convert_link, common::Rotation rotate_degrees, bool is_generate_tag, HTML2PDFPageMode page_mode, bool to_generate_bookmarks, HTML2PDFScalingMode scaling_mode,
417 HTML2PDFEncodingFormat encoding_format, bool to_render_images, bool to_remove_underline_for_link, bool to_set_headerfooter,
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,
419 HTML2PDFMediaStyle media_style, bool to_load_active_content, bool to_disable_sandbox, bool to_use_blacklist,
420 bool to_hide_header, bool to_hide_footer, bool to_deny_local_file_access) {
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
472 bool is_to_page_scale;
473
480 RectF page_margin;
481
486 common::Rotation rotate_degrees;
487
489 bool is_convert_link;
490
492 bool is_generate_tag;
493
498 HTML2PDFPageMode page_mode;
499
501 bool to_generate_bookmarks;
502
507 HTML2PDFScalingMode scaling_mode;
508
512 HTML2PDFEncodingFormat encoding_format;
513
515 bool to_render_images;
516
518 bool to_remove_underline_for_link;
519
521 bool to_set_headerfooter;
522
524 foxit::WString headerfooter_title;
525
527 foxit::WString headerfooter_url;
528
530 foxit::WString bookmark_root_name;
531
533 bool to_resize_objects;
534
536 bool to_print_background;
537
539 bool to_optimize_tag_tree;
540
545 HTML2PDFMediaStyle media_style;
546
554 bool to_load_active_content;
555
561 bool to_disable_sandbox;
562
589 bool to_use_blacklist;
590
592 bool to_hide_header;
593
595 bool to_hide_footer;
596
604 bool to_deny_local_file_access;
605 };
606
608 class TXT2PDFSettingData FS_FINAL : public Object {
609 public:
611 TXT2PDFSettingData()
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
634 TXT2PDFSettingData(float page_width, float page_height, RectF page_margin, const common::Font& font, float text_size,
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
653 TXT2PDFSettingData& operator=(const TXT2PDFSettingData& data) {
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;
661 is_break_page = data.is_break_page;
662 return (*this);
663 }
664
679 void Set(float page_width, float page_height, RectF page_margin, const common::Font& font, float text_size,
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
703 RectF page_margin;
704
706 common::Font font;
707
709 float text_size;
710
712 ARGB text_color;
713
715 float linespace;
716
718 bool is_break_page;
719 };
720
726 class DWG2PDFProgressCallback {
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 {
762 e_FlagEmbededTTF = 0x0001,
766 e_FlagTTFTextAsGeometry = 0x0002,
770 e_FlagSHXTextAsGeometry = 0x0004,
774 e_FlagSimpleGeomOptimization = 0x0008,
776 e_FlagEnableLayers = 0x0010,
778 e_FlagIncludeOffLayers = 0x0020,
782 e_FlagEmbededOptimizedTTF = 0x0040,
786 e_FlagUseHLR = 0x0080,
788 e_FlagFlateCompression = 0x0100,
790 e_FlagASCIIHexEncoding = 0x0200,
792 e_FlagExportHyperlinks = 0x0400,
798 e_FlagZoomToExtentsMode = 0x0800,
800 e_FlagLinearized = 0x1000,
802 e_FlagMeasuring = 0x4000
803 } DWG2PDFExportFlags;
804
810 typedef enum _DWG2PDFExportHatchesType {
812 e_DWG2PDFExportHatchesTypeBitmap = 0,
814 e_DWG2PDFExportHatchesTypeDrawing = 1,
816 e_DWG2PDFExportHatchesTypePdfPaths = 2,
818 e_DWG2PDFExportHatchesTypePolygons = 3
819 } DWG2PDFExportHatchesType;
820
826 typedef enum _DWG2PDFSearchableTextType {
828 e_DWG2PDFSearchableTextTypeNoSearch = 0,
830 e_DWG2PDFSearchableTextTypeSHX = 1,
832 e_DWG2PDFSearchableTextTypeTTF = 2
833 } DWG2PDFSearchableTextType;
834
840 typedef enum _DWG2PDFColorPolicy {
842 e_DWG2PDFColorPolicyNoPolicy = 0,
844 e_DWG2PDFColorPolicyMono = 1,
846 e_DWG2PDFColorPolicyGrayscale = 2
847 } DWG2PDFColorPolicy;
848
849
853 DWG2PDFSettingData()
854 : export_flags(1)
855 , export_hatches_type(e_DWG2PDFExportHatchesTypeBitmap)
856 , other_export_hatches_type(e_DWG2PDFExportHatchesTypeBitmap)
857 , gradient_export_hatches_type(e_DWG2PDFExportHatchesTypeBitmap)
858 , searchable_text_type(e_DWG2PDFSearchableTextTypeNoSearch)
859 , is_active_layout(false)
860 , paper_width(0.0f)
861 , paper_height(0.0f)
862 , color_policy(e_DWG2PDFColorPolicyNoPolicy)
863 , is_output_progress(true)
864 , progress_callback(NULL){}
865
873 DWG2PDFSettingData& operator=(const DWG2PDFSettingData& data) {
874 export_flags = data.export_flags;
875 export_hatches_type = data.export_hatches_type;
876 other_export_hatches_type = data.other_export_hatches_type;
877 gradient_export_hatches_type = data.gradient_export_hatches_type;
878 searchable_text_type = data.searchable_text_type;
879 is_active_layout = data.is_active_layout;
880 output_title = data.output_title;
881 output_author = data.output_author;
882 output_subject = data.output_subject;
883 output_keywords = data.output_keywords;
884 output_creator = data.output_creator;
885 output_producer = data.output_producer;
886 paper_width = data.paper_width;
887 paper_height = data.paper_height;
888 color_policy = data.color_policy;
889 is_output_progress = data.is_output_progress;
890 progress_callback = data.progress_callback;
891 return (*this);
892 }
893
899 uint32 export_flags;
900
908 DWG2PDFExportHatchesType export_hatches_type;
909
919 DWG2PDFExportHatchesType other_export_hatches_type;
920
930 DWG2PDFExportHatchesType gradient_export_hatches_type;
931
941 DWG2PDFSearchableTextType searchable_text_type;
942
946 bool is_active_layout;
947
951 foxit::WString output_title;
952
956 foxit::WString output_author;
957
961 foxit::WString output_subject;
962
966 foxit::WString output_keywords;
967
971 foxit::WString output_creator;
972
976 foxit::WString output_producer;
977
985 float paper_width;
986
994 float paper_height;
995
1003 DWG2PDFColorPolicy color_policy;
1004
1010 bool is_output_progress;
1011
1016 void* progress_callback;
1017 };
1018
1019 #if defined(_WIN32) || defined(_WIN64) || defined(__linux__)
1020
1022 class Word2PDFSettingData FS_FINAL : public Object{
1023 public:
1029 typedef enum _ConvertOptimizeOption {
1031 e_ConvertOptimizeOptionForPrint = 0,
1033 e_ConvertOptimizeOptionForOnScreen = 1
1034 } ConvertOptimizeOption;
1035
1041 typedef enum _ConvertContentOption {
1043 e_ConvertContentOptionOnlyContent = 0,
1045 e_ConvertContentOptionWithMarkup = 1
1046 } ConvertContentOption;
1047
1053 typedef enum _ConvertBookmarkOption {
1055 e_ConvertBookmarkOptionNone = 0,
1061 e_ConvertBookmarkOptionUseHeadings = 1,
1066 e_ConvertBookmarkOptionUseWordBookmark = 2
1067 } ConvertBookmarkOption;
1068
1069
1071 Word2PDFSettingData()
1072 : include_doc_props(false)
1073 , optimize_option(Word2PDFSettingData::e_ConvertOptimizeOptionForPrint)
1074 , content_option(Word2PDFSettingData::e_ConvertContentOptionOnlyContent)
1075 , bookmark_option(Word2PDFSettingData::e_ConvertBookmarkOptionNone)
1076 , convert_to_pdfa(false)
1077 , disable_vba_code(false)
1078 {}
1079
1097 Word2PDFSettingData(bool include_doc_props, ConvertOptimizeOption optimize_option,
1098 ConvertContentOption content_option, ConvertBookmarkOption bookmark_option,
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
1115 Word2PDFSettingData &operator = (const Word2PDFSettingData& data) {
1116 include_doc_props = data.include_doc_props;
1117 optimize_option = data.optimize_option;
1118 content_option = data.content_option;
1119 bookmark_option = data.bookmark_option;
1120 convert_to_pdfa = data.convert_to_pdfa;
1121 disable_vba_code = data.disable_vba_code;
1122 return (*this);
1123 }
1124
1144 void Set(bool include_doc_props, ConvertOptimizeOption optimize_option,
1145 ConvertContentOption content_option, ConvertBookmarkOption bookmark_option,
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
1161 bool include_doc_props;
1162
1168 ConvertOptimizeOption optimize_option;
1169
1175 ConvertContentOption content_option;
1176
1182 ConvertBookmarkOption bookmark_option;
1183
1191 bool convert_to_pdfa;
1192
1200 bool disable_vba_code;
1201 };
1202
1204 class Excel2PDFSettingData FS_FINAL : public Object{
1205 public:
1211 typedef enum _ConvertQuality {
1213 e_ConvertQualityStandard = 0,
1215 e_ConvertQualityMinimum = 1
1216 } ConvertQuality;
1217
1223 typedef enum _ScaleType {
1225 e_ScaleTypeNone = 0,
1227 e_ScaleTypeFitAllColumns = 1,
1229 e_ScaleTypeFitAllRows = 2,
1231 e_ScaleTypeFitSheet = 3
1232 } ScaleType;
1233
1234
1236 Excel2PDFSettingData()
1237 : include_doc_props(false)
1238 , quality(Excel2PDFSettingData::e_ConvertQualityStandard)
1239 , ignore_print_area(true)
1240 , scale_type(Excel2PDFSettingData::e_ScaleTypeNone)
1241 , convert_to_pdfa(false)
1242 , disable_vba_code(false)
1243 {}
1244
1259 Excel2PDFSettingData(bool include_doc_props, ConvertQuality quality, bool ignore_print_area,
1260 ScaleType scale_type, bool convert_to_pdfa, bool disable_vba_code) {
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
1276 Excel2PDFSettingData &operator = (const Excel2PDFSettingData& data) {
1277 include_doc_props = data.include_doc_props;
1278 quality = data.quality;
1279 ignore_print_area = data.ignore_print_area;
1280 scale_type = data.scale_type;
1281 convert_to_pdfa = data.convert_to_pdfa;
1282 disable_vba_code = data.disable_vba_code;
1283 return (*this);
1284 }
1285
1302 void Set(bool include_doc_props, ConvertQuality quality, bool ignore_print_area,
1303 ScaleType scale_type, bool convert_to_pdfa) {
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;
1309 this->disable_vba_code = disable_vba_code;
1310 }
1311
1318 bool include_doc_props;
1319
1325 ConvertQuality quality;
1326
1333 bool ignore_print_area;
1334
1340 ScaleType scale_type;
1341
1349 bool convert_to_pdfa;
1350
1358 bool disable_vba_code;
1359 };
1360
1362 class PowerPoint2PDFSettingData FS_FINAL : public Object{
1363 public:
1369 typedef enum _ConvertIntent {
1371 e_ConvertIntentPrint = 0,
1373 e_ConvertIntentScreen = 1
1374 } ConvertIntent;
1375
1382 typedef enum _HandoutOrder {
1387 e_HandoutOrderHorizontalFirst = 0,
1392 e_HandoutOrderVerticalFirst = 1
1393 } HandoutOrder;
1394
1400 typedef enum _OutputType {
1402 e_OutputSlides = 1,
1404 e_OutputNotesPages = 2,
1406 e_OutputOutline = 3,
1408 e_OutputOneSlideHandouts = 4,
1410 e_OutputTwoSlideHandouts = 5,
1412 e_OutputThreeSlideHandouts = 6,
1414 e_OutputFourSlideHandouts = 7,
1416 e_OutputSixSlideHandouts = 8,
1418 e_OutputNineSlideHandouts = 9
1419 } OutputType;
1420
1421
1423 PowerPoint2PDFSettingData()
1424 : intent(PowerPoint2PDFSettingData::e_ConvertIntentPrint)
1425 , frame_output_slides(false)
1426 , output_type(PowerPoint2PDFSettingData::e_OutputSlides)
1427 , handout_order(PowerPoint2PDFSettingData::e_HandoutOrderVerticalFirst)
1428 , output_hidden_slides(false)
1429 , include_doc_props(false)
1430 , disable_vba_code(false)
1431 {}
1432
1449 PowerPoint2PDFSettingData(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order,
1450 bool output_hidden_slides, bool include_doc_props, bool disable_vba_code) {
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
1467 PowerPoint2PDFSettingData &operator = (const PowerPoint2PDFSettingData& data) {
1468 intent = data.intent;
1469 frame_output_slides = data.frame_output_slides;
1470 output_type = data.output_type;
1471 handout_order = data.handout_order;
1472 output_hidden_slides = data.output_hidden_slides;
1473 include_doc_props = data.include_doc_props;
1474 disable_vba_code = data.disable_vba_code;
1475 return (*this);
1476 }
1477
1496 void Set(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order,
1497 bool output_hidden_slides, bool include_doc_props, bool disable_vba_code) {
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
1511 ConvertIntent intent;
1512
1519 bool frame_output_slides;
1520
1526 OutputType output_type;
1527
1544 HandoutOrder handout_order;
1545
1552 bool output_hidden_slides;
1553
1560 bool include_doc_props;
1561
1569 bool disable_vba_code;
1570 };
1571 #endif // #if (defined(_WIN32) || defined(_WIN64))
1572
1574 class HTML2PDFRelatedResource FS_FINAL : public Object{
1575 public:
1577 HTML2PDFRelatedResource()
1578 : related_resource_file(NULL)
1579 , resource_file_relative_path(L"") {
1580 }
1581
1590 HTML2PDFRelatedResource(foxit::common::file::ReaderCallback* related_resource_file, foxit::WString resource_file_relative_path) {
1591 this->related_resource_file = related_resource_file;
1592 this->resource_file_relative_path = resource_file_relative_path;
1593 }
1594
1602 HTML2PDFRelatedResource &operator = (const HTML2PDFRelatedResource& data) {
1603 related_resource_file = data.related_resource_file;
1604 resource_file_relative_path = data.resource_file_relative_path;
1605 return (*this);
1606 }
1607
1609 foxit::common::file::ReaderCallback* related_resource_file;
1610
1617 foxit::WString resource_file_relative_path;
1618 };
1619
1621 FSDK_DEFINE_ARRAY(HTML2PDFRelatedResourceArray, HTML2PDFRelatedResource)
1622
1623 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1624
1625 class OFDConvertParam FS_FINAL : public Object{
1626 public:
1628 OFDConvertParam()
1629 :is_embed_font(false) {}
1630
1636 OFDConvertParam(bool is_embed_font) {
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
1652 bool is_embed_font;
1653 };
1654 #endif
1655
1666 class Convert FS_FINAL : public Base {
1667 public:
1673 typedef enum _Office2PdfEngine {
1675 e_Office2PdfEngineMicrosoft = 0,
1677 e_Office2PdfEngineWps = 1
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
foxit::addon::conversion::HTML2PDFSettingData::media_style
HTML2PDFMediaStyle media_style
用于转换的PDF文档的媒体样式。请参考从HTML2PDFSettingData::e_MediaStyleScreen开始的值， 应该是这些值中的一个。
Definition: fs_convert.h:545
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatDefault
编码格式：默认。编码格式将在chromium中自动检测。
Definition: fs_convert.h:72
foxit::addon::conversion::HTML2PDFSettingData::Set
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
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP866
编码格式："CP866"。
Definition: fs_convert.h:122
foxit::addon::conversion::HTML2PDFSettingData::to_hide_footer
bool to_hide_footer
用于决定是否隐藏页脚。在Linux x86平台上不支持。
Definition: fs_convert.h:595
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatGB18030
编码格式："GB18030"。
Definition: fs_convert.h:162
foxit::addon::conversion::DWG2PDFSettingData::e_FlagSHXTextAsGeometry
位3。启用SHX字体文本到几何形状的转换。
Definition: fs_convert.h:770
IFX_FileWrite
文件写入接口。
Definition: fx_stream.h:470
foxit::addon::conversion::HTML2PDFSettingData::to_disable_sandbox
bool to_disable_sandbox
用于决定是否禁用沙盒。
Definition: fs_convert.h:561
foxit::addon::conversion::HTML2PDFSettingData::e_MediaStyleScreen
媒体样式：屏幕。意味着PDF页面将以屏幕媒体样式显示。
Definition: fs_convert.h:228
foxit::addon::conversion::DWG2PDFSettingData::e_FlagIncludeOffLayers
位6。如果启用，不可见图层将添加到PDF文件（需要1.5版本）。
Definition: fs_convert.h:778
foxit::addon::conversion::DWG2PDFSettingData::operator=
DWG2PDFSettingData & operator=(const DWG2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:873
foxit::addon::conversion::DWG2PDFSettingData::DWG2PDFSettingData
DWG2PDFSettingData()
带参数的构造函数。
Definition: fs_convert.h:853
foxit::addon::conversion::DWG2PDFSettingData::e_FlagUseHLR
位8。确定软件是否对相应视口使用矢量隐藏线移除。
Definition: fs_convert.h:786
foxit::addon::conversion::DWG2PDFSettingData::gradient_export_hatches_type
DWG2PDFExportHatchesType gradient_export_hatches_type
渐变填充导出的类型。
Definition: fs_convert.h:930
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatHebrew
编码格式："Hebrew"。
Definition: fs_convert.h:92
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_ELANGO
编码格式："X-TAM-ELANGO"。
Definition: fs_convert.h:198
foxit::addon::conversion::HTML2PDFSettingData::e_ScalingModeScale
页面缩放：缩放。这意味着HTML内容将被缩放以适应PDF页面大小。在此模式下，文本大小可能会改变。
Definition: fs_convert.h:60
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFScalingMode
HTML2PDFScalingMode
用于将HTML转换为PDF的缩放模式枚举。
Definition: fs_convert.h:56
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFSettingData
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
foxit::addon::conversion::HTML2PDFSettingData::e_ScalingModeEnlarge
页面缩放：放大。这意味着PDF页面将被放大到HTML内容大小。在此模式下，HTML内容的文本大小不会改变。
Definition: fs_convert.h:62
foxit::addon::conversion::DWG2PDFSettingData::e_FlagZoomToExtentsMode
位12。如果启用，布局几何将缩放到纸张大小，否则将应用布局设置。
Definition: fs_convert.h:798
foxit::addon::conversion::TXT2PDFSettingData::Set
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
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatVISUAL
编码格式："VISUAL"。
Definition: fs_convert.h:152
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_2022_KR
编码格式："ISO-2022-KR"。
Definition: fs_convert.h:158
foxit::addon::conversion::HTML2PDFSettingData::to_hide_header
bool to_hide_header
用于决定是否隐藏页眉。在Linux x86平台上不支持。
Definition: fs_convert.h:592
foxit::Object
CFX_Object Object
对象类型。
Definition: fs_basictypes.h:221
foxit::addon::conversion::DWG2PDFSettingData::export_hatches_type
DWG2PDFExportHatchesType export_hatches_type
实体填充导出的类型。
Definition: fs_convert.h:908
foxit::addon::conversion::DWG2PDFSettingData::e_FlagFlateCompression
位9。启用内部PDF流的压缩。
Definition: fs_convert.h:788
foxit::addon::conversion::DWG2PDFSettingData::e_FlagEmbededOptimizedTTF
位7。启用TTF字体程序嵌入PDF文件。通过删除未使用的部分来减少TTF字体（PDF文件较小，但编辑受限）。
Definition: fs_convert.h:782
foxit::common::e_Rotation0
不旋转。
Definition: fs_common.h:59
foxit::addon::conversion::HTML2PDFSettingData::is_convert_link
bool is_convert_link
用于决定是否转换网页链接。
Definition: fs_convert.h:489
foxit::addon::conversion::HTML2PDFSettingData::page_width
float page_width
用于转换的PDF文档的页面宽度（单位为1/72英寸）。
Definition: fs_convert.h:455
foxit::addon::conversion::HTML2PDFRelatedResourceArray
Definition: fs_convert.h:1621
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCSN_369103
编码格式："CSN_369103"。
Definition: fs_convert.h:154
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatEUC_JP
编码格式："EUC-JP"。
Definition: fs_convert.h:94
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatHTCHANAKYA
编码格式："HTCHANAKYA"。
Definition: fs_convert.h:182
foxit::addon::conversion::HTML2PDFRelatedResource::HTML2PDFRelatedResource
HTML2PDFRelatedResource(foxit::common::file::ReaderCallback *related_resource_file, foxit::WString resource_file_relative_path)
带参数的构造函数。
Definition: fs_convert.h:1590
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatASCII_7_bit
编码格式："ASCII-7-bit"。
Definition: fs_convert.h:116
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1252
编码格式："CP1252"。
Definition: fs_convert.h:132
foxit::addon::conversion::HTML2PDFSettingData::e_MediaStylePrint
媒体样式：打印。意味着PDF页面将以打印媒体样式显示。
Definition: fs_convert.h:230
fs_common.h
通用定义和类的头文件。
foxit::addon::conversion::DWG2PDFSettingData::paper_width
float paper_width
用于转换的PDF文档的纸张宽度。
Definition: fs_convert.h:985
foxit::addon::conversion::HTML2PDFSettingData::is_to_page_scale
bool is_to_page_scale
用于决定是否缩放转换的PDF页面。
Definition: fs_convert.h:472
foxit::addon::conversion::Convert::e_Office2PdfEngineMicrosoft
Microsoft Office 自动化引擎。
Definition: fs_convert.h:1675
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatKOI8R
编码格式："KOI8R"。
Definition: fs_convert.h:118
foxit::addon::conversion::DWG2PDFSettingData::paper_height
float paper_height
用于转换的PDF文档的纸张高度。
Definition: fs_convert.h:994
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1254
编码格式："CP1254"。
Definition: fs_convert.h:136
foxit::addon::conversion::TXT2PDFSettingData::page_height
float page_height
用于转换的PDF文档的页面高度。
Definition: fs_convert.h:695
IFX_FileRead
文件读取接口。
Definition: fx_stream.h:587
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_8859_11
编码格式："ISO-8859-11"。
Definition: fs_convert.h:148
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatBIG5
编码格式："BIG5"。
Definition: fs_convert.h:100
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatJIS
编码格式："JIS"。
Definition: fs_convert.h:98
foxit::addon::conversion::Convert::FromDWG
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文件。
foxit::addon::conversion::HTML2PDFSettingData::page_margin
RectF page_margin
用于转换的PDF文档的页面边距。
Definition: fs_convert.h:480
foxit::addon::conversion::HTML2PDFSettingData::rotate_degrees
common::Rotation rotate_degrees
用于转换的PDF页面的旋转度数。请参考从common::e_Rotation0开始的值， 应该是这些值中的一个。
Definition: fs_convert.h:486
foxit::addon::conversion::DWG2PDFSettingData::output_title
foxit::WString output_title
输出PDF文档的标题，默认使用空字符串。
Definition: fs_convert.h:951
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatGBK
编码格式："GBK"。
Definition: fs_convert.h:160
foxit::addon::conversion::HTML2PDFSettingData
Definition: fs_convert.h:37
foxit::ARGB
uint32 ARGB
ARGB 颜色类型，32 位，((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_basictypes.h:210
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1253
编码格式："CP1253"。
Definition: fs_convert.h:134
foxit::addon::conversion::HTML2PDFRelatedResource
Definition: fs_convert.h:1574
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_BINARYENC
编码格式："X-BINARYENC"。
Definition: fs_convert.h:192
foxit::addon::conversion::DWG2PDFProgressCallback::Release
virtual void Release()=0
用于释放当前回调对象自身的回调函数。
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_8859_15
编码格式："ISO-8859-15"。
Definition: fs_convert.h:146
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFSearchableTextTypeSHX
可搜索文本类型：仅使用SHX字体显示的文本可搜索。
Definition: fs_convert.h:830
foxit::addon::conversion::HTML2PDFSettingData::headerfooter_url
foxit::WString headerfooter_url
页眉页脚URL，作为左侧页脚的内容。
Definition: fs_convert.h:527
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1255
编码格式："CP1255"。
Definition: fs_convert.h:138
foxit::addon::conversion::HTML2PDFSettingData::to_deny_local_file_access
bool to_deny_local_file_access
用于决定在转换HTML文件时是否拒绝本地文件访问。 在Linux x86平台上不支持。
Definition: fs_convert.h:604
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFPageMode
HTML2PDFPageMode
用于将HTML转换为PDF的页面模式枚举。
Definition: fs_convert.h:44
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUTF_16LE
编码格式："UTF-16LE"。
Definition: fs_convert.h:186
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_SoftBank_ISO_2022_JP
编码格式："X-SoftBank-ISO-2022-JP"。
Definition: fs_convert.h:218
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_SHREE
编码格式："X-TAM-SHREE"。
Definition: fs_convert.h:202
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatKSC
编码格式："KSC"。
Definition: fs_convert.h:106
foxit::addon::conversion::DWG2PDFSettingData::DWG2PDFColorPolicy
DWG2PDFColorPolicy
用于DWG到PDF转换的颜色策略枚举。
Definition: fs_convert.h:840
foxit::addon::conversion::HTML2PDFSettingData::to_remove_underline_for_link
bool to_remove_underline_for_link
用于决定是否为链接移除下划线装饰。
Definition: fs_convert.h:518
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatBHASKAR
编码格式："BHASKAR"。
Definition: fs_convert.h:180
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1251
编码格式："CP1251"。
Definition: fs_convert.h:130
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_DoCoMo_Shift_JIS
编码格式："X-DoCoMo-Shift_JIS"。
Definition: fs_convert.h:212
foxit::addon::conversion::DWG2PDFSettingData::e_FlagExportHyperlinks
位11。启用超链接导出。
Definition: fs_convert.h:792
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatKOI8U
编码格式："KOI8U"。
Definition: fs_convert.h:144
foxit::addon::conversion::HTML2PDFSettingData::to_load_active_content
bool to_load_active_content
用于决定是否加载活动内容。
Definition: fs_convert.h:554
foxit::addon::conversion::DWG2PDFSettingData::output_author
foxit::WString output_author
输出PDF文档的作者，默认使用空字符串。
Definition: fs_convert.h:956
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFExportHatchesTypeDrawing
填充导出类型：将填充导出为三角形集合（矢量化器）。
Definition: fs_convert.h:814
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFSettingData
HTML2PDFSettingData()
构造函数。
Definition: fs_convert.h:235
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_KDDI_ISO_2022_JP
编码格式："X-KDDI-ISO-2022-JP"。
Definition: fs_convert.h:216
foxit::addon::conversion::DWG2PDFSettingData::e_FlagSimpleGeomOptimization
位4。启用简单几何优化（分离的线段合并为一条折线，贝塞尔曲线控制点）。
Definition: fs_convert.h:774
foxit::addon::conversion::Convert::e_Office2PdfEngineWps
WPS Office 自动化引擎。
Definition: fs_convert.h:1677
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatGB
编码格式："GB"。
Definition: fs_convert.h:102
foxit::addon::conversion::HTML2PDFSettingData::to_optimize_tag_tree
bool to_optimize_tag_tree
用于决定是否优化标签树。
Definition: fs_convert.h:539
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatMACINTOSH
编码格式："MACINTOSH"。
Definition: fs_convert.h:176
foxit::addon::conversion::Convert::FromHTML
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文件。
foxit::addon::conversion::HTML2PDFRelatedResource::resource_file_relative_path
foxit::WString resource_file_relative_path
related_resource_file在HTML内容中的路径。
Definition: fs_convert.h:1617
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUnicode
编码格式："Unicode"。
Definition: fs_convert.h:108
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_TBOOMIS
编码格式："X-TAM-TBOOMIS"。
Definition: fs_convert.h:204
foxit::addon::conversion::TXT2PDFSettingData::page_margin
RectF page_margin
用于转换的PDF文档的页面边距。
Definition: fs_convert.h:703
foxit::addon::conversion::Convert::FromImage
static void FromImage(const wchar_t *src_img, const wchar_t *saved_pdf_path)
将图像格式文件转换为PDF文件。
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatLatin5
编码格式："Latin5"。
Definition: fs_convert.h:82
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatTAM
编码格式："TAM"。
Definition: fs_convert.h:170
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatTAB
编码格式："TAB"。
Definition: fs_convert.h:172
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFExportHatchesTypePdfPaths
填充导出类型：将填充导出为PDF路径（仅限实体填充）。
Definition: fs_convert.h:816
foxit::addon::conversion::HTML2PDFSettingData::headerfooter_title
foxit::WString headerfooter_title
页眉页脚标题，作为中央页眉的内容。
Definition: fs_convert.h:524
foxit::addon::conversion::Convert::FromTXT
static void FromTXT(const wchar_t *src_txt, const wchar_t *saved_pdf_path, const TXT2PDFSettingData &setting_data)
将TXT格式文件转换为PDF文件。
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1256
编码格式："CP1256"。
Definition: fs_convert.h:140
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatArabic
编码格式："Arabic"。
Definition: fs_convert.h:88
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_UTF8UTF8
编码格式："X-UTF8UTF8"。
Definition: fs_convert.h:196
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_8859_5
编码格式："ISO-8859-5"。
Definition: fs_convert.h:86
foxit::addon::conversion::DWG2PDFSettingData::e_FlagLinearized
位13。创建线性化PDF文件。
Definition: fs_convert.h:800
foxit::addon::conversion::HTML2PDFSettingData::to_print_background
bool to_print_background
用于决定是否打印背景。
Definition: fs_convert.h:536
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP852
编码格式："CP852"。
Definition: fs_convert.h:120
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_WEBTAMIL
编码格式："X-TAM-WEBTAMIL"。
Definition: fs_convert.h:208
foxit::addon::conversion::HTML2PDFRelatedResource::related_resource_file
foxit::common::file::ReaderCallback * related_resource_file
相关资源文件。
Definition: fs_convert.h:1609
foxit::common::Rotation
Rotation
旋转的枚举。
Definition: fs_common.h:57
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFColorPolicyMono
颜色策略：图形导出为单色PDF文件。
Definition: fs_convert.h:844
foxit::addon::conversion::DWG2PDFSettingData::DWG2PDFSearchableTextType
DWG2PDFSearchableTextType
用于DWG到PDF转换的可搜索文本类型枚举。
Definition: fs_convert.h:826
foxit::addon::conversion::DWG2PDFSettingData::searchable_text_type
DWG2PDFSearchableTextType searchable_text_type
搜索文本类型的类型。
Definition: fs_convert.h:941
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1250
编码格式："CP1250"。
Definition: fs_convert.h:128
foxit::addon::conversion::TXT2PDFSettingData::font
common::Font font
字体对象。
Definition: fs_convert.h:706
foxit::addon::conversion::HTML2PDFRelatedResource::HTML2PDFRelatedResource
HTML2PDFRelatedResource()
构造函数。
Definition: fs_convert.h:1577
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatTSCII
编码格式："TSCII"。
Definition: fs_convert.h:168
foxit::addon::conversion::DWG2PDFSettingData::e_FlagTTFTextAsGeometry
位2。启用TTF字体文本到几何形状的转换。
Definition: fs_convert.h:766
foxit::addon::conversion::DWG2PDFSettingData::color_policy
DWG2PDFColorPolicy color_policy
用于转换的PDF文档的颜色策略。
Definition: fs_convert.h:1003
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatJAGRAN
编码格式："JAGRAN"。
Definition: fs_convert.h:174
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP1257
编码格式："CP1257"。
Definition: fs_convert.h:142
fs_pdfpage.h
PDF页面相关定义和类的头文件。
foxit::addon::conversion::DWG2PDFSettingData::export_flags
uint32 export_flags
用于转换的PDF文档的导出标志。请参考从DWG2PDFSettingData::e_FlagEmbededTTF开始的值， 这可以是这些值中的一个或多个的组合。 也可以是0，表示标志中的所有位都是0。
Definition: fs_convert.h:899
foxit::addon::conversion::HTML2PDFSettingData::to_render_images
bool to_render_images
用于决定是否渲染图像。
Definition: fs_convert.h:515
foxit::addon::conversion::TXT2PDFSettingData::text_size
float text_size
字体大小。如果有效，应该大于0。
Definition: fs_convert.h:709
foxit::addon::conversion::HTML2PDFSettingData::to_use_blacklist
bool to_use_blacklist
用于决定是否使用黑名单。
Definition: fs_convert.h:589
foxit::addon::conversion::HTML2PDFSettingData::e_ScalingModeNone
缩放模式：固定页面无缩放。在此模式下，HTML内容的文本大小不会改变。
Definition: fs_convert.h:58
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUTF_32BE
编码格式："UTF-32BE"。
Definition: fs_convert.h:188
foxit::addon::conversion::HTML2PDFSettingData::to_set_headerfooter
bool to_set_headerfooter
用于决定是否设置页眉页脚。
Definition: fs_convert.h:521
foxit
Foxit命名空间。
Definition: fs_taggedpdf.h:27
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatBIG5_CP950
编码格式："BIG5-CP950"。
Definition: fs_convert.h:114
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_SoftBank_Shift_JIS
编码格式："X-SoftBank-Shift_JIS"。
Definition: fs_convert.h:214
foxit::addon::conversion::HTML2PDFSettingData::e_PageModeMultiplePage
多页模式。
Definition: fs_convert.h:48
foxit::addon::conversion::HTML2PDFSettingData::bookmark_root_name
foxit::WString bookmark_root_name
书签的根名称。
Definition: fs_convert.h:530
foxit::addon::conversion::DWG2PDFSettingData::e_FlagEmbededTTF
位1。启用TTF（True Type Font）程序嵌入PDF文件。整个TTF字体文件将被嵌入（PDF文件较大）。
Definition: fs_convert.h:762
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_KDDI_Shift_JIS
编码格式："X-KDDI-Shift_JIS"。
Definition: fs_convert.h:210
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFColorPolicyGrayscale
颜色策略：图形导出为灰度PDF文件。原生颜色转换为灰度。
Definition: fs_convert.h:846
foxit::addon::conversion::TXT2PDFSettingData::operator=
TXT2PDFSettingData & operator=(const TXT2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:653
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatHZ_GB_2312
编码格式："HZ-GB-2312"。
Definition: fs_convert.h:194
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUTF_16BE
编码格式："UTF-16BE"。
Definition: fs_convert.h:184
foxit::addon::conversion::TXT2PDFSettingData::TXT2PDFSettingData
TXT2PDFSettingData()
构造函数。
Definition: fs_convert.h:611
foxit::addon::conversion::DWG2PDFSettingData::progress_callback
void * progress_callback
指向DWG2PDFProgressCallback对象的指针，用于接收DWG转换为PDF的进度。 此参数可以是NULL。
Definition: fs_convert.h:1016
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_8859_8_I
编码格式："ISO-8859-8-I"。
Definition: fs_convert.h:150
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP874
编码格式："CP874"。
Definition: fs_convert.h:124
foxit::addon::conversion::HTML2PDFSettingData::page_mode
HTML2PDFPageMode page_mode
用于转换的页面模式。请参考从HTML2PDFSettingData::e_PageModeSinglePage开始的值， 应该是这些值中的一个。
Definition: fs_convert.h:498
foxit::addon::conversion::DWG2PDFSettingData::output_creator
foxit::WString output_creator
输出PDF文档的创建者，默认使用空字符串。
Definition: fs_convert.h:971
fs_pdfdoc.h
PDF文档相关定义和类的头文件。
foxit::addon::conversion::DWG2PDFSettingData::other_export_hatches_type
DWG2PDFExportHatchesType other_export_hatches_type
其他（非实体）填充导出的类型。
Definition: fs_convert.h:919
foxit::addon::conversion::TXT2PDFSettingData::TXT2PDFSettingData
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
NULL
#define NULL
空指针值。
Definition: fx_system.h:792
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_TMNEWS
编码格式："X-TAM-TMNEWS"。
Definition: fs_convert.h:206
foxit::addon::conversion::Convert::Office2PdfEngine
Office2PdfEngine
用于 Windows 平台将 Office 转换为 PDF 的引擎类型枚举。
Definition: fs_convert.h:1673
CFX_FloatRect
Definition: fx_coordinates.h:771
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatX_TAM_LTTMBARANI
编码格式："X-TAM-LTTMBARANI"。
Definition: fs_convert.h:200
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatEUC_CN
编码格式："EUC-CN"。
Definition: fs_convert.h:104
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatEUC
编码格式："EUC"。
Definition: fs_convert.h:110
foxit::addon::conversion::HTML2PDFSettingData::e_PageModeSinglePage
单页模式。
Definition: fs_convert.h:46
foxit::addon::conversion::TXT2PDFSettingData::text_color
ARGB text_color
字体颜色。
Definition: fs_convert.h:712
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFColorPolicyNoPolicy
颜色策略：无颜色策略。图形以其原生颜色调色板导出（原样导出）。
Definition: fs_convert.h:842
foxit::addon::conversion::HTML2PDFSettingData::operator=
HTML2PDFSettingData & operator=(const HTML2PDFSettingData &data)
赋值操作符。
Definition: fs_convert.h:345
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatLatin6
编码格式："Latin6"。
Definition: fs_convert.h:84
foxit::addon::conversion::DWG2PDFSettingData::is_active_layout
bool is_active_layout
true表示仅导出活动布局，false表示不仅导出活动布局。默认值：false。
Definition: fs_convert.h:946
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_2022_CN
编码格式："ISO_2022_CN"。
Definition: fs_convert.h:166
foxit::addon::conversion::DWG2PDFSettingData::DWG2PDFExportHatchesType
DWG2PDFExportHatchesType
用于DWG到PDF转换的填充导出类型枚举。
Definition: fs_convert.h:810
foxit::addon::conversion::TXT2PDFSettingData::linespace
float linespace
行间距。如果有效，应该大于0。
Definition: fs_convert.h:715
foxit::addon::conversion::HTML2PDFSettingData::scaling_mode
HTML2PDFScalingMode scaling_mode
用于转换的PDF文档的缩放模式。请参考从HTML2PDFSettingData::e_ScalingModeNone开始的值， 应该是这些值中的一个。
Definition: fs_convert.h:507
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatGreek
编码格式："Greek"。
Definition: fs_convert.h:90
foxit::int32
FX_INT32 int32
有符号 32 位整数。
Definition: fs_basictypes.h:194
foxit::addon::conversion::DWG2PDFSettingData::e_FlagMeasuring
位15。在PDF中启用测量比例。
Definition: fs_convert.h:802
foxit::addon::conversion::HTML2PDFSettingData::encoding_format
HTML2PDFEncodingFormat encoding_format
HTML编码格式。请参考从HTML2PDFSettingData::e_EncodingFormatDefault开始的值， 应该是这些值中的一个。
Definition: fs_convert.h:512
foxit::addon::conversion::DWG2PDFSettingData::e_FlagEnableLayers
位5。如果启用，图层支持将添加到PDF文件（需要1.5版本）。
Definition: fs_convert.h:776
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCP932
编码格式："CP932"。
Definition: fs_convert.h:126
foxit::addon::conversion::HTML2PDFSettingData::to_generate_bookmarks
bool to_generate_bookmarks
用于决定是否生成书签。
Definition: fs_convert.h:501
foxit::addon::conversion::DWG2PDFProgressCallback::OnProgress
virtual void OnProgress(const wchar_t *message, float progress)=0
在DWG转换为PDF时调用的回调函数。
foxit::common::Font
Definition: fs_common.h:1519
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatCNS
编码格式："CNS"。
Definition: fs_convert.h:112
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatLatin2
编码格式："Latin2"。
Definition: fs_convert.h:76
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFSearchableTextTypeNoSearch
可搜索文本类型：无可搜索文本。
Definition: fs_convert.h:828
foxit::addon::conversion::DWG2PDFSettingData
Definition: fs_convert.h:751
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUTF_32LE
编码格式："UTF-32LE"。
Definition: fs_convert.h:190
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatLatin3
编码格式："Latin3"。
Definition: fs_convert.h:78
foxit::addon::conversion::DWG2PDFSettingData::DWG2PDFExportFlags
DWG2PDFExportFlags
DWG到PDF导出标志的枚举。
Definition: fs_convert.h:758
foxit::addon::conversion::DWG2PDFSettingData::is_output_progress
bool is_output_progress
一个布尔值，指示是否输出进度日志。 true表示输出进度日志，false表示不输出。 默认值：true。
Definition: fs_convert.h:1010
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFExportHatchesTypeBitmap
填充导出类型：将填充导出为位图。
Definition: fs_convert.h:812
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFEncodingFormat
HTML2PDFEncodingFormat
用于将HTML转换为PDF的编码格式枚举。
Definition: fs_convert.h:70
CFX_WideString
宽字符串类
Definition: fx_string.h:1457
foxit::addon::conversion::HTML2PDFSettingData::HTML2PDFMediaStyle
HTML2PDFMediaStyle
用于将HTML转换为PDF的媒体样式枚举。
Definition: fs_convert.h:226
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFSearchableTextTypeTTF
可搜索文本类型：仅使用TTF字体显示的文本可搜索。
Definition: fs_convert.h:832
foxit::addon::conversion::DWG2PDFSettingData::e_DWG2PDFExportHatchesTypePolygons
填充导出类型：将填充导出为多边形（仅限实体填充）。
Definition: fs_convert.h:818
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatSJS
编码格式："SJS"。
Definition: fs_convert.h:96
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatISO_8859_13
编码格式："ISO-8859-13"。
Definition: fs_convert.h:156
foxit::addon::conversion::DWG2PDFProgressCallback
用于将DWG转换为PDF的回调类。
Definition: fs_convert.h:726
foxit::addon::conversion::HTML2PDFSettingData::is_generate_tag
bool is_generate_tag
用于决定是否生成标签。
Definition: fs_convert.h:492
foxit::addon::conversion::HTML2PDFSettingData::page_height
float page_height
用于转换的PDF文档的页面高度（单位为1/72英寸）。
Definition: fs_convert.h:464
foxit::addon::conversion::TXT2PDFSettingData::is_break_page
bool is_break_page
用于决定在转换的PDF文档中遇到字符0x0c时是否插入分页符。
Definition: fs_convert.h:718
foxit::addon::conversion::TXT2PDFSettingData
Definition: fs_convert.h:608
foxit::uint32
FX_UINT32 uint32
无符号 32 位整数。
Definition: fs_basictypes.h:196
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatLatin4
编码格式："Latin4"。
Definition: fs_convert.h:80
foxit::addon::conversion::Convert::ToXML
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::addon::conversion::HTML2PDFSettingData::e_EncodingFormatASCII
编码格式："ASCII"。
Definition: fs_convert.h:74
foxit::addon::conversion::DWG2PDFSettingData::e_FlagASCIIHexEncoding
位10。启用内部PDF流的ASCIIHex编码。
Definition: fs_convert.h:790
foxit::addon::conversion::TXT2PDFSettingData::page_width
float page_width
用于转换的PDF文档的页面宽度。
Definition: fs_convert.h:692
foxit::Base
Definition: fs_basictypes.h:449
foxit::addon::conversion::HTML2PDFRelatedResource::operator=
HTML2PDFRelatedResource & operator=(const HTML2PDFRelatedResource &data)
赋值操作符。
Definition: fs_convert.h:1602
foxit::addon::conversion::DWG2PDFSettingData::output_producer
foxit::WString output_producer
输出PDF文档的生产者，默认使用空字符串。
Definition: fs_convert.h:976
foxit::addon::conversion::HTML2PDFSettingData::to_resize_objects
bool to_resize_objects
是否在渲染过程中启用与Javascript相关的对象调整大小功能。
Definition: fs_convert.h:533
foxit::addon::conversion::DWG2PDFSettingData::output_keywords
foxit::WString output_keywords
输出PDF文档的关键词，默认使用空字符串。
Definition: fs_convert.h:966
foxit::addon::conversion::Convert
Definition: fs_convert.h:1666
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatBIG5_HKSCS
编码格式："BIG5_HKSCS"。
Definition: fs_convert.h:164
foxit::addon::conversion::HTML2PDFSettingData::e_EncodingFormatUTF7
编码格式："UTF7"。
Definition: fs_convert.h:178
foxit::addon::conversion::DWG2PDFSettingData::output_subject
foxit::WString output_subject
输出PDF文档的主题，默认使用空字符串。
Definition: fs_convert.h:961