Go to the documentation of this file.
35 namespace conversion {
44 typedef enum _HTML2PDFPageMode {
56 typedef enum _HTML2PDFScalingMode {
70 typedef enum _HTML2PDFEncodingFormat {
226 typedef enum _HTML2PDFMediaStyle {
707 virtual void OnProgress(
const wchar_t* message,
float progress) = 0;
723 typedef enum _DWG2PDFExportFlags {
775 typedef enum _DWG2PDFExportHatchesType {
791 typedef enum _DWG2PDFSearchableTextType {
805 typedef enum _DWG2PDFColorPolicy {
984 #if defined(_WIN32) || defined(_WIN64) || defined(__linux__)
987 class Word2PDFSettingData FS_FINAL :
public Object{
995 typedef enum _ConvertOptimizeOption {
997 e_ConvertOptimizeOptionForPrint = 0,
999 e_ConvertOptimizeOptionForOnScreen = 1
1000 } ConvertOptimizeOption;
1008 typedef enum _ConvertContentOption {
1010 e_ConvertContentOptionOnlyContent = 0,
1012 e_ConvertContentOptionWithMarkup = 1
1013 } ConvertContentOption;
1020 typedef enum _ConvertBookmarkOption {
1022 e_ConvertBookmarkOptionNone = 0,
1028 e_ConvertBookmarkOptionUseHeadings = 1,
1033 e_ConvertBookmarkOptionUseWordBookmark = 2
1034 } ConvertBookmarkOption;
1038 Word2PDFSettingData()
1039 : include_doc_props(false)
1040 , optimize_option(Word2PDFSettingData::e_ConvertOptimizeOptionForPrint)
1041 , content_option(Word2PDFSettingData::e_ConvertContentOptionOnlyContent)
1042 , bookmark_option(Word2PDFSettingData::e_ConvertBookmarkOptionNone)
1043 , convert_to_pdfa(false)
1044 , disable_vba_code(false)
1071 Word2PDFSettingData(
bool include_doc_props, ConvertOptimizeOption optimize_option,
1072 ConvertContentOption content_option, ConvertBookmarkOption bookmark_option,
1073 bool convert_to_pdfa,
bool disable_vba_code) {
1074 this->include_doc_props = include_doc_props;
1075 this->optimize_option = optimize_option;
1076 this->content_option = content_option;
1077 this->bookmark_option = bookmark_option;
1078 this->convert_to_pdfa = convert_to_pdfa;
1079 this->disable_vba_code = disable_vba_code;
1089 Word2PDFSettingData &operator = (
const Word2PDFSettingData& data) {
1090 include_doc_props = data.include_doc_props;
1091 optimize_option = data.optimize_option;
1092 content_option = data.content_option;
1093 bookmark_option = data.bookmark_option;
1094 convert_to_pdfa = data.convert_to_pdfa;
1095 disable_vba_code = data.disable_vba_code;
1125 void Set(
bool include_doc_props, ConvertOptimizeOption optimize_option,
1126 ConvertContentOption content_option, ConvertBookmarkOption bookmark_option,
1127 bool convert_to_pdfa,
bool disable_vba_code) {
1128 this->include_doc_props = include_doc_props;
1129 this->optimize_option = optimize_option;
1130 this->content_option = content_option;
1131 this->bookmark_option = bookmark_option;
1132 this->convert_to_pdfa = convert_to_pdfa;
1133 this->disable_vba_code = disable_vba_code;
1143 bool include_doc_props;
1151 ConvertOptimizeOption optimize_option;
1159 ConvertContentOption content_option;
1167 ConvertBookmarkOption bookmark_option;
1176 bool convert_to_pdfa;
1185 bool disable_vba_code;
1189 class Excel2PDFSettingData FS_FINAL :
public Object{
1196 typedef enum _ConvertQuality {
1198 e_ConvertQualityStandard = 0,
1200 e_ConvertQualityMinimum = 1
1208 typedef enum _ScaleType {
1210 e_ScaleTypeNone = 0,
1212 e_ScaleTypeFitAllColumns = 1,
1214 e_ScaleTypeFitAllRows = 2,
1216 e_ScaleTypeFitSheet = 3
1221 Excel2PDFSettingData()
1222 : include_doc_props(false)
1223 , quality(Excel2PDFSettingData::e_ConvertQualityStandard)
1224 , ignore_print_area(true)
1225 , scale_type(Excel2PDFSettingData::e_ScaleTypeNone)
1226 , convert_to_pdfa(false)
1227 , disable_vba_code(false)
1248 Excel2PDFSettingData(
bool include_doc_props, ConvertQuality quality,
bool ignore_print_area,
1249 ScaleType scale_type,
bool convert_to_pdfa,
bool disable_vba_code) {
1250 this->include_doc_props = include_doc_props;
1251 this->quality = quality;
1252 this->ignore_print_area = ignore_print_area;
1253 this->scale_type = scale_type;
1254 this->convert_to_pdfa = convert_to_pdfa;
1255 this->disable_vba_code = disable_vba_code;
1265 Excel2PDFSettingData &operator = (
const Excel2PDFSettingData& data) {
1266 include_doc_props = data.include_doc_props;
1267 quality = data.quality;
1268 ignore_print_area = data.ignore_print_area;
1269 scale_type = data.scale_type;
1270 convert_to_pdfa = data.convert_to_pdfa;
1271 disable_vba_code = data.disable_vba_code;
1295 void Set(
bool include_doc_props, ConvertQuality quality,
bool ignore_print_area,
1296 ScaleType scale_type,
bool convert_to_pdfa) {
1297 this->include_doc_props = include_doc_props;
1298 this->quality = quality;
1299 this->ignore_print_area = ignore_print_area;
1300 this->scale_type = scale_type;
1301 this->convert_to_pdfa = convert_to_pdfa;
1302 this->disable_vba_code = disable_vba_code;
1312 bool include_doc_props;
1319 ConvertQuality quality;
1328 bool ignore_print_area;
1335 ScaleType scale_type;
1344 bool convert_to_pdfa;
1353 bool disable_vba_code;
1357 class PowerPoint2PDFSettingData FS_FINAL :
public Object{
1364 typedef enum _ConvertIntent {
1366 e_ConvertIntentPrint = 0,
1368 e_ConvertIntentScreen = 1
1377 typedef enum _HandoutOrder {
1382 e_HandoutOrderHorizontalFirst = 0,
1387 e_HandoutOrderVerticalFirst = 1
1395 typedef enum _OutputType {
1399 e_OutputNotesPages = 2,
1401 e_OutputOutline = 3,
1403 e_OutputOneSlideHandouts = 4,
1405 e_OutputTwoSlideHandouts = 5,
1407 e_OutputThreeSlideHandouts = 6,
1409 e_OutputFourSlideHandouts = 7,
1411 e_OutputSixSlideHandouts = 8,
1413 e_OutputNineSlideHandouts = 9
1418 PowerPoint2PDFSettingData()
1419 : intent(PowerPoint2PDFSettingData::e_ConvertIntentPrint)
1420 , frame_output_slides(false)
1421 , output_type(PowerPoint2PDFSettingData::e_OutputSlides)
1422 , handout_order(PowerPoint2PDFSettingData::e_HandoutOrderVerticalFirst)
1423 , output_hidden_slides(false)
1424 , include_doc_props(false)
1425 , disable_vba_code(false)
1448 PowerPoint2PDFSettingData(ConvertIntent intent,
bool frame_output_slides, OutputType output_type, HandoutOrder handout_order,
1449 bool output_hidden_slides,
bool include_doc_props,
bool disable_vba_code) {
1450 this->intent = intent;
1451 this->frame_output_slides = frame_output_slides;
1452 this->handout_order = handout_order;
1453 this->output_hidden_slides = output_hidden_slides;
1454 this->output_type = output_type;
1455 this->include_doc_props = include_doc_props;
1456 this->disable_vba_code = disable_vba_code;
1466 PowerPoint2PDFSettingData &operator = (
const PowerPoint2PDFSettingData& data) {
1467 intent = data.intent;
1468 frame_output_slides = data.frame_output_slides;
1469 output_type = data.output_type;
1470 handout_order = data.handout_order;
1471 output_hidden_slides = data.output_hidden_slides;
1472 include_doc_props = data.include_doc_props;
1473 disable_vba_code = data.disable_vba_code;
1499 void Set(ConvertIntent intent,
bool frame_output_slides, OutputType output_type, HandoutOrder handout_order,
1500 bool output_hidden_slides,
bool include_doc_props,
bool disable_vba_code) {
1501 this->intent = intent;
1502 this->frame_output_slides = frame_output_slides;
1503 this->output_type = output_type;
1504 this->handout_order = handout_order;
1505 this->output_hidden_slides = output_hidden_slides;
1506 this->include_doc_props = include_doc_props;
1507 this->disable_vba_code = disable_vba_code;
1514 ConvertIntent intent;
1522 bool frame_output_slides;
1529 OutputType output_type;
1547 HandoutOrder handout_order;
1555 bool output_hidden_slides;
1564 bool include_doc_props;
1573 bool disable_vba_code;
1575 #endif // #if (defined(_WIN32) || defined(_WIN64))
1627 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1629 class OFDConvertParam FS_FINAL :
public Object{
1633 :is_embed_font(
false) {}
1640 OFDConvertParam(
bool is_embed_font) {
1641 this->is_embed_font = is_embed_font;
1651 void Set(
bool is_embed_font) {
1652 this->is_embed_font = is_embed_font;
1688 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);
1771 static void FromImage(
const wchar_t* src_img,
const wchar_t* saved_pdf_path);
1799 static bool FromDWG(
const wchar_t* engine_path,
const wchar_t* src_dwg_path,
const wchar_t* saved_pdf_path,
1802 #if (defined(_WIN32) || defined(_WIN64))
1816 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);
1831 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);
1846 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);
1848 #elif defined(__linux__) && !(defined(__ANDROID__) || defined(_FS_IOS_) || defined(_SWIG_ANDROID_) || defined(_SWIG_IOS_))
1874 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
"");
1901 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
"");
1928 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
"");
1953 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);
1955 #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
1968 static bool FromOFD(
const wchar_t* src_ofd_path,
const wchar_t* password,
const wchar_t* saved_pdf_file_path, OFDConvertParam convert_param);
1982 static bool ToOFD(
const wchar_t* src_pdf_path,
const wchar_t* password,
const wchar_t* saved_ofd_file_path, OFDConvertParam convert_param);
1983 #endif // #if (defined(_WIN32) || defined(_WIN64)) || defined(__linux__)
HTML2PDFMediaStyle media_style
The media style used for the converted PDF document. Please refer to values starting from HTML2PDFSet...
Definition: fs_convert.h:525
Encoding foramt: Default.The encoding format will be automatically detected in chromium.
Definition: fs_convert.h:72
Encoding foramt: "CP866".
Definition: fs_convert.h:122
Encoding foramt: "GB18030".
Definition: fs_convert.h:162
Bit 3. Enable SHX font text to geometry conversion.
Definition: fs_convert.h:735
File writing interface.
Definition: fx_stream.h:453
bool to_disable_sandbox
Used to decide whether to disable sandbox or not.
Definition: fs_convert.h:541
Media style: screen. It means PDF page will be displayed in screen media style.
Definition: fs_convert.h:228
Bit 6. If enabled, invisible layers will be added to PDF file (1.5 version required).
Definition: fs_convert.h:743
DWG2PDFSettingData & operator=(const DWG2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:838
DWG2PDFSettingData()
Constructor, with parameters.
Definition: fs_convert.h:818
Bit 8. Determines whether software uses vector hidden-line removal for corresponding viewports.
Definition: fs_convert.h:751
DWG2PDFExportHatchesType gradient_export_hatches_type
The type of gradient hatches export.
Definition: fs_convert.h:895
Encoding foramt: "Hebrew".
Definition: fs_convert.h:92
Encoding foramt: "X-TAM-ELANGO".
Definition: fs_convert.h:198
Page scaling: Scale. It means HTML content will be scaled to fit PDF page size. In this mode,...
Definition: fs_convert.h:60
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)
Set value.
Definition: fs_convert.h:399
HTML2PDFScalingMode
Enumeration for scaling mode used for converting HTML to PDF.
Definition: fs_convert.h:56
Page scaling: Enlarge. It means PDF page will be enlarged to HTML content size. In this mode,...
Definition: fs_convert.h:62
Bit 12. If enabled, layout geometry will be zoomed to paper size, else layout settings will be applie...
Definition: fs_convert.h:763
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:644
Encoding foramt: "VISUAL".
Definition: fs_convert.h:152
Encoding foramt: "ISO-2022-KR".
Definition: fs_convert.h:158
CFX_Object Object
Object type.
Definition: fs_basictypes.h:221
DWG2PDFExportHatchesType export_hatches_type
The type of solid hatches export.
Definition: fs_convert.h:873
Bit 9. Enable compression of internal PDF streams.
Definition: fs_convert.h:753
Bit 7. Enable embedding of TTF font program to PDF file. The TTF font will be reduced by removing unu...
Definition: fs_convert.h:747
No rotation.
Definition: fs_common.h:59
bool is_convert_link
Used to decide whether the web link should be converted or not.
Definition: fs_convert.h:469
float page_width
The page width used for the converted PDF document (unit is 1/72 inch).
Definition: fs_convert.h:435
Encoding foramt: "CSN_369103".
Definition: fs_convert.h:154
Encoding foramt: "EUC-JP".
Definition: fs_convert.h:94
Encoding foramt: "HTCHANAKYA".
Definition: fs_convert.h:182
Encoding foramt: "ASCII-7-bit".
Definition: fs_convert.h:116
Encoding foramt: "CP1252".
Definition: fs_convert.h:132
Media style: print. It means PDF page will be displayed in print media style.
Definition: fs_convert.h:230
Header file for common definitions and classes.
float paper_width
The paper width used for the converted PDF document.
Definition: fs_convert.h:950
bool is_to_page_scale
Used to decide whether to scale the converted PDF page or not.
Definition: fs_convert.h:452
Encoding foramt: "KOI8R".
Definition: fs_convert.h:118
float paper_height
The paper height used for the converted PDF document.
Definition: fs_convert.h:959
Encoding foramt: "CP1254".
Definition: fs_convert.h:136
float page_height
Page height used for the converted PDF document.
Definition: fs_convert.h:660
File reading interface.
Definition: fx_stream.h:570
Encoding foramt: "ISO-8859-11".
Definition: fs_convert.h:148
Encoding foramt: "BIG5".
Definition: fs_convert.h:100
Encoding foramt: "JIS".
Definition: fs_convert.h:98
static bool FromDWG(const wchar_t *engine_path, const wchar_t *src_dwg_path, const wchar_t *saved_pdf_path, const DWG2PDFSettingData &settings)
Convert a DWG format file to a PDF file.
RectF page_margin
The page margin used for converted PDF document.
Definition: fs_convert.h:460
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:466
foxit::WString output_title
The title for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:916
Encoding foramt: "GBK".
Definition: fs_convert.h:160
Definition: fs_convert.h:37
uint32 ARGB
ARGB color type, 32 bits, ((b) | ((g) << 8) | ((r) << 16)) | ((a) << 24)
Definition: fs_basictypes.h:210
Encoding foramt: "CP1253".
Definition: fs_convert.h:134
Encoding foramt: "X-BINARYENC".
Definition: fs_convert.h:192
virtual void Release()=0
A callback function used to release current callback object itself.
Encoding foramt: "ISO-8859-15".
Definition: fs_convert.h:146
Searchable text type: Only text displayed with SHX font is searchable.
Definition: fs_convert.h:795
foxit::WString headerfooter_url
The header-footer url which is content for left footer.
Definition: fs_convert.h:507
Encoding foramt: "CP1255".
Definition: fs_convert.h:138
HTML2PDFPageMode
Enumeration for page mode used for converting HTML to PDF.
Definition: fs_convert.h:44
Encoding foramt: "UTF-16LE".
Definition: fs_convert.h:186
Encoding foramt: "X-SoftBank-ISO-2022-JP".
Definition: fs_convert.h:218
Encoding foramt: "X-TAM-SHREE".
Definition: fs_convert.h:202
Encoding foramt: "KSC".
Definition: fs_convert.h:106
DWG2PDFColorPolicy
Enumeration for color policy used for converting DWG to PDF.
Definition: fs_convert.h:805
bool to_remove_underline_for_link
Used to decide whether to remove underline decoration for link.
Definition: fs_convert.h:498
Encoding foramt: "BHASKAR".
Definition: fs_convert.h:180
Encoding foramt: "CP1251".
Definition: fs_convert.h:130
Encoding foramt: "X-DoCoMo-Shift_JIS".
Definition: fs_convert.h:212
Bit 11. Enable hyperlinks export.
Definition: fs_convert.h:757
Encoding foramt: "KOI8U".
Definition: fs_convert.h:144
bool to_load_active_content
Used to decide whether to load active content or not.
Definition: fs_convert.h:534
foxit::WString output_author
The author for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:921
Hatches export type: Exports hatch as a set of triangles (vectorizer).
Definition: fs_convert.h:779
HTML2PDFSettingData()
Constructor.
Definition: fs_convert.h:235
Encoding foramt: "X-KDDI-ISO-2022-JP".
Definition: fs_convert.h:216
Bit 4. Enable simple geometry optimization (separated segments to one polyline, Bezier curve control ...
Definition: fs_convert.h:739
Encoding foramt: "GB".
Definition: fs_convert.h:102
bool to_optimize_tag_tree
Used to decide whether to optimize tag tree or not.
Definition: fs_convert.h:519
Encoding foramt: "MACINTOSH".
Definition: fs_convert.h:176
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)
Convert a HTML format file or a URL of a Web page to a PDF file.
Encoding foramt: "Unicode".
Definition: fs_convert.h:108
Encoding foramt: "X-TAM-TBOOMIS".
Definition: fs_convert.h:204
RectF page_margin
Page margin used for converted PDF document.
Definition: fs_convert.h:668
static void FromImage(const wchar_t *src_img, const wchar_t *saved_pdf_path)
Convert a Image format file to a PDF file.
Encoding foramt: "Latin5".
Definition: fs_convert.h:82
Encoding foramt: "TAM".
Definition: fs_convert.h:170
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)
Constructor, with parameters.
Definition: fs_convert.h:297
Encoding foramt: "TAB".
Definition: fs_convert.h:172
Hatches export type: Exports hatch as a PDF path (solid hatches only).
Definition: fs_convert.h:781
foxit::WString headerfooter_title
The header-footer title which is content for center header.
Definition: fs_convert.h:504
static void FromTXT(const wchar_t *src_txt, const wchar_t *saved_pdf_path, const TXT2PDFSettingData &setting_data)
Convert a TXT format file to a PDF file.
Encoding foramt: "CP1256".
Definition: fs_convert.h:140
Encoding foramt: "Arabic".
Definition: fs_convert.h:88
Encoding foramt: "X-UTF8UTF8".
Definition: fs_convert.h:196
Encoding foramt: "ISO-8859-5".
Definition: fs_convert.h:86
Bit 13. Create linearized PDF file.
Definition: fs_convert.h:765
bool to_print_background
Used to decide whether to print background or not.
Definition: fs_convert.h:516
Encoding foramt: "CP852".
Definition: fs_convert.h:120
Encoding foramt: "X-TAM-WEBTAMIL".
Definition: fs_convert.h:208
Rotation
Enumeration for rotation.
Definition: fs_common.h:57
Color policy: Drawing is exported to a monochrome PDF file.
Definition: fs_convert.h:809
DWG2PDFSearchableTextType
Enumeration for searchable text type used for converting DWG to PDF.
Definition: fs_convert.h:791
DWG2PDFSearchableTextType searchable_text_type
The type of search text type.
Definition: fs_convert.h:906
Encoding foramt: "CP1250".
Definition: fs_convert.h:128
common::Font font
A font object.
Definition: fs_convert.h:671
Encoding foramt: "TSCII".
Definition: fs_convert.h:168
Bit 2. Enable TTF font text to geometry conversion.
Definition: fs_convert.h:731
DWG2PDFColorPolicy color_policy
The color policy used for the converted PDF document.
Definition: fs_convert.h:968
Encoding foramt: "JAGRAN".
Definition: fs_convert.h:174
Encoding foramt: "CP1257".
Definition: fs_convert.h:142
Header file for PDF page related definitions and classes.
uint32 export_flags
The export flags used for the converted PDF document. Please refer to values starting from DWG2PDFSet...
Definition: fs_convert.h:864
bool to_render_images
Used to decide whether to render images or not.
Definition: fs_convert.h:495
float text_size
Font size. If valid, it should be above 0.
Definition: fs_convert.h:674
bool to_use_blacklist
Used to decide whether to use blacklist or not.
Definition: fs_convert.h:569
Scaling mode: Fixed page with no scale. In this mode, the text size of HTML content will not be chang...
Definition: fs_convert.h:58
Encoding foramt: "UTF-32BE".
Definition: fs_convert.h:188
bool to_set_headerfooter
Used to decide whether to set header-footer or not.
Definition: fs_convert.h:501
Foxit namespace.
Definition: fs_taggedpdf.h:27
Encoding foramt: "BIG5-CP950".
Definition: fs_convert.h:114
Encoding foramt: "X-SoftBank-Shift_JIS".
Definition: fs_convert.h:214
Multiple page mode.
Definition: fs_convert.h:48
foxit::WString bookmark_root_name
The bookmark's root name.
Definition: fs_convert.h:510
Bit 1. Enable embedding of TTF(True Type Font) program to PDF file. The whole TTF font file will be e...
Definition: fs_convert.h:727
Encoding foramt: "X-KDDI-Shift_JIS".
Definition: fs_convert.h:210
Color policy: Drawing is exported to a grayscale PDF file. Native colors are converted into grayscale...
Definition: fs_convert.h:811
TXT2PDFSettingData & operator=(const TXT2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:618
Encoding foramt: "HZ-GB-2312".
Definition: fs_convert.h:194
Encoding foramt: "UTF-16BE".
Definition: fs_convert.h:184
TXT2PDFSettingData()
Constructor.
Definition: fs_convert.h:576
void * progress_callback
A pointer to a DWG2PDFProgressCallback object which is used to receive the progress of converting DWG...
Definition: fs_convert.h:981
Encoding foramt: "ISO-8859-8-I".
Definition: fs_convert.h:150
Encoding foramt: "CP874".
Definition: fs_convert.h:124
HTML2PDFPageMode page_mode
The page mode used for the converting. Please refer to values starting from HTML2PDFSettingData::e_Pa...
Definition: fs_convert.h:478
foxit::WString output_creator
The creator for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:936
Header file for PDF document related definitions and classes.
DWG2PDFExportHatchesType other_export_hatches_type
The type of other (non-solid) hatches export.
Definition: fs_convert.h:884
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:599
#define NULL
The null-pointer value.
Definition: fx_system.h:792
Encoding foramt: "X-TAM-TMNEWS".
Definition: fs_convert.h:206
Definition: fx_coordinates.h:771
Encoding foramt: "X-TAM-LTTMBARANI".
Definition: fs_convert.h:200
Encoding foramt: "EUC-CN".
Definition: fs_convert.h:104
Encoding foramt: "EUC".
Definition: fs_convert.h:110
Single page mode.
Definition: fs_convert.h:46
ARGB text_color
Font color.
Definition: fs_convert.h:677
Color policy: No color policy. A drawing is exported with its native color palette (as is).
Definition: fs_convert.h:807
HTML2PDFSettingData & operator=(const HTML2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:335
Encoding foramt: "Latin6".
Definition: fs_convert.h:84
bool is_active_layout
true means to export the active layout only, while false means not. Default value: false.
Definition: fs_convert.h:911
Encoding foramt: "ISO_2022_CN".
Definition: fs_convert.h:166
DWG2PDFExportHatchesType
Enumeration for hatches export type used for converting DWG to PDF.
Definition: fs_convert.h:775
float linespace
Line spacing. If valid, it should be above 0.
Definition: fs_convert.h:680
HTML2PDFScalingMode scaling_mode
The scaling mode used for the converted PDF document. Please refer to values starting from HTML2PDFSe...
Definition: fs_convert.h:487
Encoding foramt: "Greek".
Definition: fs_convert.h:90
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:194
Bit 15. Enable measuring scale in pdf.
Definition: fs_convert.h:767
HTML2PDFEncodingFormat encoding_format
The HTML encoding format Please refer to values starting from HTML2PDFSettingData::e_EncodingFormatDe...
Definition: fs_convert.h:492
Bit 5. If enabled, layer support will be added to PDF file (1.5 version required).
Definition: fs_convert.h:741
Encoding foramt: "CP932".
Definition: fs_convert.h:126
bool to_generate_bookmarks
Used to decide whether bookmarks should be generated or not.
Definition: fs_convert.h:481
virtual void OnProgress(const wchar_t *message, float progress)=0
A callback function to be called when converting DWG to PDF.
Definition: fs_common.h:1428
Encoding foramt: "CNS".
Definition: fs_convert.h:112
Encoding foramt: "Latin2".
Definition: fs_convert.h:76
Searchable text type: No searchable text.
Definition: fs_convert.h:793
Definition: fs_convert.h:716
Encoding foramt: "UTF-32LE".
Definition: fs_convert.h:190
Encoding foramt: "Latin3".
Definition: fs_convert.h:78
DWG2PDFExportFlags
Enumeration for flags of DWG to PDF export.
Definition: fs_convert.h:723
bool is_output_progress
A boolean value which indicates whether to output progress logs. true means to output progress logs,...
Definition: fs_convert.h:975
Hatches export type: Exports hatch as a bitmap.
Definition: fs_convert.h:777
HTML2PDFEncodingFormat
Enumeration for encoding format used for converting HTML to PDF.
Definition: fs_convert.h:70
WIDE STRING CLASS.
Definition: fx_string.h:1461
HTML2PDFMediaStyle
Enumeration for media style used for converting HTML to PDF.
Definition: fs_convert.h:226
Searchable text type: Only text displayed with TTF font is searchable.
Definition: fs_convert.h:797
Hatches export type: Exports hatch as a polygon (solid hatches only).
Definition: fs_convert.h:783
Encoding foramt: "SJS".
Definition: fs_convert.h:96
Encoding foramt: "ISO-8859-13".
Definition: fs_convert.h:156
A callback class used for converting DWG to PDF.
Definition: fs_convert.h:691
bool is_generate_tag
Used to decide whether the tag should be generated or not.
Definition: fs_convert.h:472
float page_height
The page height used for the converted PDF document (unit is 1/72 inch).
Definition: fs_convert.h:444
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:683
Definition: fs_convert.h:573
FX_UINT32 uint32
32-bit unsigned integer.
Definition: fs_basictypes.h:196
Encoding foramt: "Latin4".
Definition: fs_convert.h:80
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)
Convert a PDF file to a XML format file.
Encoding foramt: "ASCII".
Definition: fs_convert.h:74
Bit 10. Enable ASCIIHex encoding of internal PDF streams.
Definition: fs_convert.h:755
float page_width
Page width used for the converted PDF document.
Definition: fs_convert.h:657
Definition: fs_basictypes.h:443
foxit::WString output_producer
The producer for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:941
bool to_resize_objects
Whether to enable the Javascripts related resizing of the objects during rendering process.
Definition: fs_convert.h:513
foxit::WString output_keywords
The keywords for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:931
Definition: fs_convert.h:1669
Encoding foramt: "BIG5_HKSCS".
Definition: fs_convert.h:164
Encoding foramt: "UTF7".
Definition: fs_convert.h:178
foxit::WString output_subject
The subject for the output PDF document, an empty string will be used as default.
Definition: fs_convert.h:926
@2024 Foxit Software Incorporated. All rights reserved.