Foxit PDF SDK
fs_convert.h
Go to the documentation of this file.
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 
294  const wchar_t* headerfooter_url, const wchar_t* bookmark_root_name, bool to_resize_objects, bool to_print_background, bool to_optimize_tag_tree,
296  this->page_width = page_width;
297  this->page_height = page_height;
298  this->is_to_page_scale = is_to_page_scale;
299  this->page_margin = page_margin;
300  this->is_convert_link = is_convert_link;
301  this->rotate_degrees = rotate_degrees;
302  this->is_generate_tag = is_generate_tag;
303  this->page_mode = page_mode;
304  this->to_generate_bookmarks = to_generate_bookmarks;
305  this->scaling_mode = scaling_mode;
306  this->encoding_format = encoding_format;
307  this->to_render_images = to_render_images;
308  this->to_remove_underline_for_link = to_remove_underline_for_link;
309  this->to_set_headerfooter = to_set_headerfooter;
310  this->headerfooter_title = headerfooter_title;
311  this->headerfooter_url = headerfooter_url;
312  this->bookmark_root_name = bookmark_root_name;
313  this->to_resize_objects = to_resize_objects;
314  this->to_print_background = to_print_background;
315  this->to_optimize_tag_tree = to_optimize_tag_tree;
316  this->media_style = media_style;
317  }
318 
327  page_width = data.page_width;
328  page_height = data.page_height;
330  page_margin = data.page_margin;
334  page_mode = data.page_mode;
336  scaling_mode = data.scaling_mode;
347  media_style = data.media_style;
348  return (*this);
349  }
350 
387  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,
389  this->page_width = page_width;
390  this->page_height = page_height;
391  this->is_to_page_scale = is_to_page_scale;
392  this->page_margin = page_margin;
393  this->is_convert_link = is_convert_link;
394  this->rotate_degrees = rotate_degrees;
395  this->is_generate_tag = is_generate_tag;
396  this->page_mode = page_mode;
397  this->to_generate_bookmarks = to_generate_bookmarks;
398  this->scaling_mode = scaling_mode;
399  this->encoding_format = encoding_format;
400  this->to_render_images = to_render_images;
401  this->to_remove_underline_for_link = to_remove_underline_for_link;
402  this->to_set_headerfooter = to_set_headerfooter;
403  this->headerfooter_title = headerfooter_title;
404  this->headerfooter_url = headerfooter_url;
405  this->bookmark_root_name = bookmark_root_name;
406  this->to_resize_objects = to_resize_objects;
407  this->to_print_background = to_print_background;
408  this->to_optimize_tag_tree = to_optimize_tag_tree;
409  this->media_style = media_style;
410  }
411 
417  float page_width;
418 
426  float page_height;
427 
435 
443 
449 
452 
455 
461 
464 
470 
475 
478 
481 
484 
487 
490 
493 
496 
499 
502 
508 };
509 
511 class TXT2PDFSettingData FS_FINAL : public Object {
512  public:
515  : page_width(0)
516  , page_height(0)
517  , text_size(0)
518  , text_color(0xFF000000)
519  , linespace(0)
520  , is_break_page(false) {
521  }
522 
538  ARGB text_color, float linespace, bool is_break_page) {
539  this->page_width = page_width;
540  this->page_height = page_height;
541  this->page_margin = page_margin;
542  this->font = font;
543  this->text_size = text_size;
544  this->text_color = text_color;
545  this->linespace = linespace;
546  this->is_break_page = is_break_page;
547  }
548 
557  page_width = data.page_width;
558  page_height = data.page_height;
559  page_margin = data.page_margin;
560  font = data.font;
561  text_size = data.text_size;
562  text_color = data.text_color;
563  linespace = data.linespace;
565  return (*this);
566  }
567 
583  ARGB text_color, float linespace, bool is_break_page) {
584  this->page_width = page_width;
585  this->page_height = page_height;
586  this->page_margin = page_margin;
587  this->font = font;
588  this->text_size = text_size;
589  this->text_color = text_color;
590  this->linespace = linespace;
591  this->is_break_page = is_break_page;
592  }
593 
595  float page_width;
596 
598  float page_height;
599 
607 
610 
612  float text_size;
613 
616 
618  float linespace;
619 
622 };
623 
624 #if defined(_WIN32) || defined(_WIN64) || defined(__linux__)
625 
627 class Word2PDFSettingData FS_FINAL : public Object{
628  public:
635  typedef enum _ConvertOptimizeOption {
641 
648  typedef enum _ConvertContentOption {
654 
660  typedef enum _ConvertBookmarkOption {
675 
676 
679  : include_doc_props(false)
683  , convert_to_pdfa(false)
684  {}
685 
711  bool convert_to_pdfa) {
712  this->include_doc_props = include_doc_props;
713  this->optimize_option = optimize_option;
714  this->content_option = content_option;
715  this->bookmark_option = bookmark_option;
716  this->convert_to_pdfa = convert_to_pdfa;
717  }
718 
732  return (*this);
733  }
734 
762  bool convert_to_pdfa) {
763  this->include_doc_props = include_doc_props;
764  this->optimize_option = optimize_option;
765  this->content_option = content_option;
766  this->bookmark_option = bookmark_option;
767  this->convert_to_pdfa = convert_to_pdfa;
768  }
769 
778 
786 
794 
802 
811 };
812 
814 class Excel2PDFSettingData FS_FINAL : public Object{
815  public:
821  typedef enum _ConvertQuality {
826  } ConvertQuality;
827 
833  typedef enum _ScaleType {
842  } ScaleType;
843 
844 
847  : include_doc_props(false)
849  , ignore_print_area(true)
851  , convert_to_pdfa(false)
852  {}
853 
873  this->include_doc_props = include_doc_props;
874  this->quality = quality;
875  this->ignore_print_area = ignore_print_area;
876  this->scale_type = scale_type;
877  this->convert_to_pdfa = convert_to_pdfa;
878  }
879 
889  quality = data.quality;
891  scale_type = data.scale_type;
893  return (*this);
894  }
895 
917  this->include_doc_props = include_doc_props;
918  this->quality = quality;
919  this->ignore_print_area = ignore_print_area;
920  this->scale_type = scale_type;
921  this->convert_to_pdfa = convert_to_pdfa;
922  }
923 
932 
939 
948 
955 
964 };
965 
967 class PowerPoint2PDFSettingData FS_FINAL : public Object{
968  public:
974  typedef enum _ConvertIntent {
979  } ConvertIntent;
980 
987  typedef enum _HandoutOrder {
998  } HandoutOrder;
999 
1005  typedef enum _OutputType {
1024  } OutputType;
1025 
1026 
1030  , frame_output_slides(false)
1033  , output_hidden_slides(false)
1034  , include_doc_props(false)
1035  {}
1036 
1058  this->intent = intent;
1059  this->frame_output_slides = frame_output_slides;
1060  this->handout_order = handout_order;
1061  this->output_hidden_slides = output_hidden_slides;
1062  this->output_type = output_type;
1063  this->include_doc_props = include_doc_props;
1064  }
1065 
1074  intent = data.intent;
1076  output_type = data.output_type;
1080  return (*this);
1081  }
1082 
1106  this->intent = intent;
1107  this->frame_output_slides = frame_output_slides;
1108  this->output_type = output_type;
1109  this->handout_order = handout_order;
1110  this->output_hidden_slides = output_hidden_slides;
1111  this->include_doc_props = include_doc_props;
1112  }
1113 
1119 
1127 
1134 
1152 
1160 
1169 };
1170 #endif // #if (defined(_WIN32) || defined(_WIN64))
1171 
1173 class HTML2PDFRelatedResource FS_FINAL : public Object{
1174  public:
1179  }
1180 
1190  this->related_resource_file = related_resource_file;
1191  this->resource_file_relative_path = resource_file_relative_path;
1192  }
1193 
1204  return (*this);
1205  }
1206 
1209 
1212 };
1213 
1216 
1217 
1225 class Convert FS_FINAL : public Base {
1226  public:
1244  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);
1245 
1264  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);
1265 
1284  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);
1285 
1306  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);
1307 
1317  static void FromTXT(const wchar_t* src_txt, const wchar_t* saved_pdf_path, const TXT2PDFSettingData& setting_data);
1318 
1319 #if (defined(_WIN32) || defined(_WIN64))
1320 
1333  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);
1334 
1348  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);
1349 
1363  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);
1364 
1365 #elif defined(__linux__) && !(defined(__ANDROID__) || defined(_FS_IOS_) || defined(_SWIG_ANDROID_) || defined(_SWIG_IOS_))
1366 
1385  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);
1386 
1406  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);
1407 
1427  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);
1428 #endif
1429 
1452  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);
1453 
1454 };
1455 }
1456 }
1457 }
1458 #endif
Encoding foramt: "JIS".
Definition: fs_convert.h:98
bool include_doc_props
A boolean value which indicates whether to include Word document properties in the converted PDF docu...
Definition: fs_convert.h:777
ConvertBookmarkOption bookmark_option
Bookmark option for covnerting Word to PDF, which specifies whether to export bookmarks to converted ...
Definition: fs_convert.h:801
Encoding foramt: "X-KDDI-Shift_JIS".
Definition: fs_convert.h:210
bool convert_to_pdfa
(Reserved) A boolean value which indicates whether to convert to a PDF/A file or a common PDF file....
Definition: fs_convert.h:810
Encoding foramt: "EUC-CN".
Definition: fs_convert.h:104
Encoding foramt: "X-SoftBank-ISO-2022-JP".
Definition: fs_convert.h:218
Encoding foramt: "KOI8R".
Definition: fs_convert.h:118
bool is_convert_link
Used to decide whether the web link should be converted or not.
Definition: fs_convert.h:451
HTML2PDFScalingMode
Enumeration for scaling mode used for converting HTML to PDF.
Definition: fs_convert.h:56
OutputType output_type
Output type used to specify which component (slides, handouts, notes pages, or an outline) of PowerPo...
Definition: fs_convert.h:1133
Media style: screen. It means PDF page will be displayed in screen media style.
Definition: fs_convert.h:228
File writing interface.
Definition: fx_stream.h:451
Encoding foramt: "VISUAL".
Definition: fs_convert.h:152
Page scaling: Scale. It means HTML content will be scaled to fit PDF page size.
Definition: fs_convert.h:60
Encoding foramt: "X-DoCoMo-Shift_JIS".
Definition: fs_convert.h:212
HandoutOrder
Enumeration for specifying the page layout order in which slides appear on converted handouts....
Definition: fs_convert.h:987
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)
Set value.
Definition: fs_convert.h:582
ConvertOptimizeOption
Enumeration for optimize option (which specifies resolution and quality) for converting Word to PDF.
Definition: fs_convert.h:635
Encoding foramt: "X-TAM-ELANGO".
Definition: fs_convert.h:198
CFX_Object Object
Object type.
Definition: fs_basictypes.h:217
bool is_break_page
Used to decide whether to insert a page break in converted PDF document when meeting character 0x0c.
Definition: fs_convert.h:621
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)
Set value.
Definition: fs_convert.h:384
Encoding foramt: "Latin2".
Definition: fs_convert.h:76
Encoding foramt: "CP874".
Definition: fs_convert.h:124
Encoding foramt: "X-KDDI-ISO-2022-JP".
Definition: fs_convert.h:216
float page_height
Page height used for the converted PDF document.
Definition: fs_convert.h:598
bool to_optimize_tag_tree
Used to decide whether to optimize tag tree or not.
Definition: fs_convert.h:501
Encoding foramt: "CP1257".
Definition: fs_convert.h:142
bool is_to_page_scale
Used to decide whether to scale the converted PDF page or not.
Definition: fs_convert.h:434
When converting PowerPoint in handouts type, convert handouts with consecutive slides displayed horiz...
Definition: fs_convert.h:992
Header file for PDF document related definitions and classes.
float page_height
The page height used for the converted PDF document.
Definition: fs_convert.h:426
bool ignore_print_area
A boolean value which indicates whether to ignore any print area set when converting Excel document t...
Definition: fs_convert.h:947
Media style: print. It means PDF page will be displayed in print media style.
Definition: fs_convert.h:230
Output type: handouts with four slide per handout page.
Definition: fs_convert.h:1019
Encoding foramt: "EUC".
Definition: fs_convert.h:110
ConvertOptimizeOption optimize_option
Optimize option for covnerting Word to PDF, which specifies the resolution and quality of the convert...
Definition: fs_convert.h:785
bool convert_to_pdfa
(Reserved) A boolean value which indicates whether to convert to a PDF/A file or a common PDF file....
Definition: fs_convert.h:963
Encoding foramt: "X-SoftBank-Shift_JIS".
Definition: fs_convert.h:214
Encoding foramt: "ISO-8859-11".
Definition: fs_convert.h:148
Encoding foramt: "BIG5_HKSCS".
Definition: fs_convert.h:164
bool to_generate_bookmarks
Used to decide whether bookmarks should be generated or not.
Definition: fs_convert.h:463
Encoding foramt: "TSCII".
Definition: fs_convert.h:168
ScaleType scale_type
Scale type for the Excel sheet when converting Excel document to PDF file. Please refer to values sta...
Definition: fs_convert.h:954
ConvertIntent intent
Converting intent. Please refer to values starting from PowerPoint2PDFSettingData::e_ConvertIntentPri...
Definition: fs_convert.h:1118
Output type: handouts with one slide per handout page.
Definition: fs_convert.h:1013
Encoding foramt: "BHASKAR".
Definition: fs_convert.h:180
bool is_generate_tag
Used to decide whether the tag should be generated or not.
Definition: fs_convert.h:454
Optimize option: convert for screen, which is a lower quality and results in a smaller file size.
Definition: fs_convert.h:639
File reading interface.
Definition: fx_stream.h:566
float page_width
The page width used for the converted PDF document.
Definition: fs_convert.h:417
PowerPoint2PDFSettingData(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order, bool output_hidden_slides, bool include_doc_props)
Constructor, with parameters.
Definition: fs_convert.h:1056
Encoding foramt: "TAM".
Definition: fs_convert.h:170
HTML2PDFSettingData()
Constructor.
Definition: fs_convert.h:235
WIDE STRING CLASS.
Definition: fx_string.h:1452
Multiple page mode.
Definition: fs_convert.h:48
common::Rotation rotate_degrees
The rotation degree used for the converted PDF page.Please refer to values starting from common::e_Ro...
Definition: fs_convert.h:448
bool frame_output_slides
A boolean value which indicates whether to frame output slides in the converted PDF document.
Definition: fs_convert.h:1126
Excel2PDFSettingData()
Constructor.
Definition: fs_convert.h:846
Encoding foramt: "Latin4".
Definition: fs_convert.h:80
HTML2PDFEncodingFormat encoding_format
The HTML encoding format Please refer to values starting from HTML2PDFEncodingFormat::e_EncodingForma...
Definition: fs_convert.h:474
Encoding foramt: "Greek".
Definition: fs_convert.h:90
Encoding foramt: "UTF7".
Definition: fs_convert.h:178
Fit all rows of one sheet on one page.
Definition: fs_convert.h:839
Encoding foramt: "HZ-GB-2312".
Definition: fs_convert.h:194
Output type: handouts with two slide per handout page.
Definition: fs_convert.h:1015
ScaleType
Enumeration for scaling type for each sheet in the Excel document for converting Excel to PDF.
Definition: fs_convert.h:833
Encoding foramt: "GB18030".
Definition: fs_convert.h:162
Encoding foramt: "CP852".
Definition: fs_convert.h:120
Encoding foramt: Default.The encoding format will be automatically detected in chromium.
Definition: fs_convert.h:72
void Set(bool include_doc_props, ConvertOptimizeOption optimize_option, ConvertContentOption content_option, ConvertBookmarkOption bookmark_option, bool convert_to_pdfa)
Set value.
Definition: fs_convert.h:760
Encoding foramt: "ASCII-7-bit".
Definition: fs_convert.h:116
Encoding foramt: "JAGRAN".
Definition: fs_convert.h:174
ConvertIntent
Enumeration for intent for converting PowerPoint to PDF.
Definition: fs_convert.h:974
Optimize option: convert for print, which is higher quality and results in a larger file size.
Definition: fs_convert.h:637
ConvertBookmarkOption
Enumeration for bookmark option for for converting Word to PDF.
Definition: fs_convert.h:660
Encoding foramt: "EUC-JP".
Definition: fs_convert.h:94
Output type: handouts with three slide per handout page.
Definition: fs_convert.h:1017
Encoding foramt: "CP932".
Definition: fs_convert.h:126
bool include_doc_props
A boolean value which indicates whether to include Excel document properties in the converted PDF doc...
Definition: fs_convert.h:931
float text_size
Font size. If valid, it should be above 0.
Definition: fs_convert.h:612
Output type: notes pages.
Definition: fs_convert.h:1009
Scaling mode: Fixed page with no scale.
Definition: fs_convert.h:58
Encoding foramt: "X-TAM-WEBTAMIL".
Definition: fs_convert.h:208
HTML2PDFMediaStyle media_style
The media style used for the converted PDF document. Please refer to values starting from HTML2PDFSet...
Definition: fs_convert.h:507
RectF page_margin
The page margin used for converted PDF document.
Definition: fs_convert.h:442
OutputType
Enumeration for output type for converting PowerPoint to PDF.
Definition: fs_convert.h:1005
Encoding foramt: "Unicode".
Definition: fs_convert.h:108
Encoding foramt: "CP866".
Definition: fs_convert.h:122
HTML2PDFPageMode
Enumeration for page mode used for converting HTML to PDF.
Definition: fs_convert.h:44
Encoding foramt: "KOI8U".
Definition: fs_convert.h:144
Encoding foramt: "CP1256".
Definition: fs_convert.h:140
Encoding foramt: "CP1250".
Definition: fs_convert.h:128
Encoding foramt: "TAB".
Definition: fs_convert.h:172
Page scaling: Enlarge. It means PDF page will be enlarged to HTML content size.
Definition: fs_convert.h:62
HTML2PDFScalingMode scaling_mode
The scaling mode used for the converted PDF document. Please refer to values starting from HTML2PDFSe...
Definition: fs_convert.h:469
uint32 ARGB
ARGB color type, 32 bits, ((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_basictypes.h:210
Intent: converted result file will be used for showing on screen.
Definition: fs_convert.h:978
HTML2PDFEncodingFormat
Enumeration for encoding format used for converting HTML to PDF.
Definition: fs_convert.h:70
Encoding foramt: "CP1255".
Definition: fs_convert.h:138
Encoding foramt: "HTCHANAKYA".
Definition: fs_convert.h:182
Fit a sheet on one page.
Definition: fs_convert.h:841
Encoding foramt: "CSN_369103".
Definition: fs_convert.h:154
Encoding foramt: "ISO-8859-8-I".
Definition: fs_convert.h:150
Fit all columns of one sheet on one page.
Definition: fs_convert.h:837
HTML2PDFPageMode page_mode
The page mode used for the converting. Please refer to values starting from HTML2PDFSettingData::e_Pa...
Definition: fs_convert.h:460
Encoding foramt: "SJS".
Definition: fs_convert.h:96
bool to_set_headerfooter
Used to decide whether to set header-footer or not.
Definition: fs_convert.h:483
Encoding foramt: "UTF-32LE".
Definition: fs_convert.h:190
foxit::WString bookmark_root_name
The bookmark's root name.
Definition: fs_convert.h:492
bool to_print_background
Used to decide whether to print background or not.
Definition: fs_convert.h:498
Output type: handouts with six slide per handout page.
Definition: fs_convert.h:1021
TXT2PDFSettingData & operator=(const TXT2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:556
Encoding foramt: "UTF-32BE".
Definition: fs_convert.h:188
Do not create bookmark in converted PDF file.
Definition: fs_convert.h:662
Convert Word document without markup.
Definition: fs_convert.h:650
Word2PDFSettingData & operator=(const Word2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:726
Intent: converted result file will be used for printing.
Definition: fs_convert.h:976
RectF page_margin
Page margin used for converted PDF document.
Definition: fs_convert.h:606
HandoutOrder handout_order
Handout order used to specify the page layout order in which slides appear on converted handouts....
Definition: fs_convert.h:1151
Encoding foramt: "CP1252".
Definition: fs_convert.h:132
common::Font font
A font object.
Definition: fs_convert.h:609
Encoding foramt: "ASCII".
Definition: fs_convert.h:74
Header file for common definitions and classes.
Encoding foramt: "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)
Set value.
Definition: fs_convert.h:915
Encoding foramt: "MACINTOSH".
Definition: fs_convert.h:176
bool output_hidden_slides
A boolean value which indicates whether to convert hidden slides to the converted PDF document.
Definition: fs_convert.h:1159
Create bookmarks in converted PDF file by using each heading of Word document.
Definition: fs_convert.h:668
Excel2PDFSettingData(bool include_doc_props, ConvertQuality quality, bool ignore_print_area, ScaleType scale_type, bool convert_to_pdfa)
Constructor, with parameters.
Definition: fs_convert.h:871
Encoding foramt: "CP1254".
Definition: fs_convert.h:136
Encoding foramt: "X-TAM-TMNEWS".
Definition: fs_convert.h:206
HTML2PDFSettingData & operator=(const HTML2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:326
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:194
Definition: fs_basictypes.h:407
Word2PDFSettingData()
Constructor.
Definition: fs_convert.h:678
Encoding foramt: "X-TAM-LTTMBARANI".
Definition: fs_convert.h:200
Encoding foramt: "X-TAM-TBOOMIS".
Definition: fs_convert.h:204
Encoding foramt: "ISO-8859-13".
Definition: fs_convert.h:156
Header file for PDF page related definitions and classes.
Encoding foramt: "Hebrew".
Definition: fs_convert.h:92
bool to_render_images
Used to decide whether to render images or not.
Definition: fs_convert.h:477
ConvertContentOption content_option
Content option for covnerting Word to PDF, which specifies how much content of Word document is to be...
Definition: fs_convert.h:793
PowerPoint2PDFSettingData()
Constructor.
Definition: fs_convert.h:1028
Encoding foramt: "Latin3".
Definition: fs_convert.h:78
ConvertQuality quality
Quality for covnerting Excel to PDF. Please refer to values starting from Excel2PDFSettingData::e_Con...
Definition: fs_convert.h:938
Word2PDFSettingData(bool include_doc_props, ConvertOptimizeOption optimize_option, ConvertContentOption content_option, ConvertBookmarkOption bookmark_option, bool convert_to_pdfa)
Constructor, with parameters.
Definition: fs_convert.h:709
Encoding foramt: "GBK".
Definition: fs_convert.h:160
Convert Word document with markup.
Definition: fs_convert.h:652
Definition: fs_common.h:1334
No rotation.
Definition: fs_common.h:59
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
Foxit namespace.
Definition: fs_taggedpdf.h:27
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)
Constructor, with parameters.
Definition: fs_convert.h:537
Encoding foramt: "ISO_2022_CN".
Definition: fs_convert.h:166
TXT2PDFSettingData()
Constructor.
Definition: fs_convert.h:514
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)
Constructor, with parameters.
Definition: fs_convert.h:291
Encoding foramt: "X-TAM-SHREE".
Definition: fs_convert.h:202
Encoding foramt: "UTF-16LE".
Definition: fs_convert.h:186
Encoding foramt: "KSC".
Definition: fs_convert.h:106
bool to_resize_objects
Whether to enable the Javascripts related resizing of the objects during rendering process.
Definition: fs_convert.h:495
Encoding foramt: "ISO-2022-KR".
Definition: fs_convert.h:158
Encoding foramt: "Arabic".
Definition: fs_convert.h:88
When converting PowerPoint in handouts type, convert handouts with consecutive slides displayed verti...
Definition: fs_convert.h:997
Encoding foramt: "Latin6".
Definition: fs_convert.h:84
HTML2PDFMediaStyle
Enumeration for media style used for converting HTML to PDF.
Definition: fs_convert.h:226
Encoding foramt: "X-BINARYENC".
Definition: fs_convert.h:192
Encoding foramt: "GB".
Definition: fs_convert.h:102
#define NULL
The null-pointer value.
Definition: fx_system.h:780
Output type: outline view.
Definition: fs_convert.h:1011
foxit::WString headerfooter_title
The header-footer title which is content for center header.
Definition: fs_convert.h:486
Encoding foramt: "CP1253".
Definition: fs_convert.h:134
float page_width
Page width used for the converted PDF document.
Definition: fs_convert.h:595
bool to_remove_underline_for_link
Used to decide whether to remove underline decoration for link.
Definition: fs_convert.h:480
bool include_doc_props
A boolean value which indicates whether to include PowerPoint document properties in the converted PD...
Definition: fs_convert.h:1168
Definition: fs_convert.h:1225
Output type: handouts with nine slide per handout page.
Definition: fs_convert.h:1023
foxit::WString headerfooter_url
The header-footer url which is content for left footer.
Definition: fs_convert.h:489
Encoding foramt: "Latin5".
Definition: fs_convert.h:82
ARGB text_color
Font color.
Definition: fs_convert.h:615
Create bookmarks in converted PDF file by using each bookmarks of Word document.
Definition: fs_convert.h:673
Encoding foramt: "ISO-8859-5".
Definition: fs_convert.h:86
Encoding foramt: "BIG5-CP950".
Definition: fs_convert.h:114
Encoding foramt: "UTF-16BE".
Definition: fs_convert.h:184
float linespace
Line spacing. If valid, it should be above 0.
Definition: fs_convert.h:618
ConvertQuality
Enumeration for quality for converting Excel to PDF.
Definition: fs_convert.h:821
Encoding foramt: "CNS".
Definition: fs_convert.h:112
Output type: slides.
Definition: fs_convert.h:1007
ConvertContentOption
Enumeration for content option which specifies how much content of Word document is to be converted t...
Definition: fs_convert.h:648
Encoding foramt: "CP1251".
Definition: fs_convert.h:130
Encoding foramt: "ISO-8859-15".
Definition: fs_convert.h:146
Excel2PDFSettingData & operator=(const Excel2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:887
void Set(ConvertIntent intent, bool frame_output_slides, OutputType output_type, HandoutOrder handout_order, bool output_hidden_slides, bool include_doc_props)
Set value.
Definition: fs_convert.h:1104
Definition: fx_coordinates.h:771
Encoding foramt: "X-UTF8UTF8".
Definition: fs_convert.h:196
PowerPoint2PDFSettingData & operator=(const PowerPoint2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:1073