35 namespace conversion {
44 typedef enum _HTML2PDFPageMode {
206 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);
bool is_convert_link
Used to decide whether the web link should be coverted or not.
Definition: fs_convert.h:168
CFX_Object Object
Object type.
Definition: fs_basictypes.h:219
bool is_to_page_scale
Used to decide whether to scale the coverted PDF page or not.
Definition: fs_convert.h:151
Header file for PDF document related definitions and classes.
float page_height
The page height used for the coverted PDF document.
Definition: fs_convert.h:148
bool is_generate_tag
Used to decide whether the tag should be generated or not.
Definition: fs_convert.h:171
float page_width
The page width used for the coverted PDF document.
Definition: fs_convert.h:141
HTML2PDFSettingData()
Constructor.
Definition: fs_convert.h:52
Multiple page mode.
Definition: fs_convert.h:48
common::Rotation rotate_degrees
The rotation degree used for the coverted PDF page.Please refer to values starting from common::e_Rot...
Definition: fs_convert.h:165
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.
Definition: fs_convert.h:37
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)
Constructor, with parameters.
Definition: fs_convert.h:80
RectF page_margin
The page margin used for coverted PDF document.
Definition: fs_convert.h:159
HTML2PDFPageMode
Enumeration for page mode used for converting HTML to PDF.
Definition: fs_convert.h:44
HTML2PDFPageMode page_mode
The page mode used for the converting. Please refer to values starting from HTML2PDFSettingData::e_Pa...
Definition: fs_convert.h:177
Header file for common definitions and classes.
HTML2PDFSettingData & operator=(const HTML2PDFSettingData &data)
Assign operator.
Definition: fs_convert.h:99
FX_INT32 int32
32-bit signed integer.
Definition: fs_basictypes.h:196
Definition: fs_basictypes.h:393
Header file for PDF page related definitions and classes.
No rotation.
Definition: fs_common.h:277
Rotation
Enumeration for rotation.
Definition: fs_common.h:275
Foxit namespace.
Definition: fs_compare.h:27
Definition: fs_convert.h:188
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)
Set value.
Definition: fs_convert.h:128
Single page mode.
Definition: fs_convert.h:46
Definition: fx_coordinates.h:769