29 using namespace common;
31 namespace conversion {
44 , margin_bottom(72.0f)
47 , base_font_size(10.0f)
48 , is_embed_font(false)
49 , style_config_path(L
"") {}
74 float margin_top,
float margin_bottom,
75 float margin_left,
float margin_right,
77 const wchar_t* custom_font_path,
const wchar_t* style_config_path,
79 this->page_width = page_width;
80 this->page_height = page_height;
81 this->margin_top = margin_top;
82 this->margin_bottom = margin_bottom;
83 this->margin_left = margin_left;
84 this->margin_right = margin_right;
85 this->base_font_size = base_font_size;
86 this->custom_font_path = custom_font_path;
87 this->style_config_path = style_config_path;
88 this->is_embed_font = is_embed_font;
136 void Set(
float page_width,
float page_height,
137 float margin_top,
float margin_bottom,
138 float margin_left,
float margin_right,
139 float base_font_size,
140 const wchar_t* custom_font_path,
141 const wchar_t* style_config_path,
142 bool is_embed_font) {
143 this->page_width = page_width;
144 this->page_height = page_height;
145 this->margin_top = margin_top;
146 this->margin_bottom = margin_bottom;
147 this->margin_left = margin_left;
148 this->margin_right = margin_right;
149 this->base_font_size = base_font_size;
150 this->custom_font_path = custom_font_path;
151 this->style_config_path = style_config_path;
152 this->is_embed_font = is_embed_font;
274 static bool ConvertFromMarkdown(
const wchar_t* src_markdown_file_path,
const wchar_t* src_file_password,
const wchar_t* saved_pdf_path,
const Md2PDFSettingData& setting_data);
281 #endif // FS_MD2PDF_H_ float page_height
Page height in points. The value must be greater than 0. Default value: 792.
Definition: fs_md2pdf.h:159
float margin_left
Left margin in points. Default value: 72. The value must be greater than or equal to 0....
Definition: fs_md2pdf.h:180
WString style_config_path
Path to a JSON style configuration file.
Definition: fs_md2pdf.h:251
CFX_Object Object
Object type.
Definition: fs_basictypes.h:145
Definition: fs_md2pdf.h:37
WString custom_font_path
Path to a TrueType font file for CJK or custom font support.
Definition: fs_md2pdf.h:202
WIDE STRING CLASS.
Definition: fx_string.h:1452
float margin_bottom
Bottom margin in points. Default value: 72. The value must be greater than or equal to 0....
Definition: fs_md2pdf.h:173
Md2PDFSettingData(float page_width, float page_height, float margin_top, float margin_bottom, float margin_left, float margin_right, float base_font_size, const wchar_t *custom_font_path, const wchar_t *style_config_path, bool is_embed_font)
Constructor, with parameters.
Definition: fs_md2pdf.h:73
float margin_top
Top margin in points. The value must be greater than or equal to 0. The sum of top and bottom margins...
Definition: fs_md2pdf.h:166
Definition: fs_md2pdf.h:262
void Set(float page_width, float page_height, float margin_top, float margin_bottom, float margin_left, float margin_right, float base_font_size, const wchar_t *custom_font_path, const wchar_t *style_config_path, bool is_embed_font)
Set value.
Definition: fs_md2pdf.h:136
Header file for common definitions and classes.
Definition: fs_basictypes.h:238
float margin_right
Right margin in points. Default value: 72. The value must be greater than or equal to 0....
Definition: fs_md2pdf.h:187
float base_font_size
Base font size in points for body text. Default value: 10.
Definition: fs_md2pdf.h:194
bool is_embed_font
Whether to embed font data in the output PDF. Default value: false.
Definition: fs_md2pdf.h:256
float page_width
Page width in points. The value must be greater than 0. Default value: 612.
Definition: fs_md2pdf.h:156
Foxit namespace.
Definition: fs_basictypes.h:124
Md2PDFSettingData()
Constructor.
Definition: fs_md2pdf.h:40