|
Foxit PDF SDK
|
Inherits SystemIDisposable.
Public Member Functions | |
| Md2PDFSettingData () | |
| Constructor. | |
| Md2PDFSettingData (float page_width, float page_height, float margin_top, float margin_bottom, float margin_left, float margin_right, float base_font_size, string custom_font_path, string style_config_path, bool is_embed_font) | |
| Constructor, with parameters. More... | |
| void | Set (float page_width, float page_height, float margin_top, float margin_bottom, float margin_left, float margin_right, float base_font_size, string custom_font_path, string style_config_path, bool is_embed_font) |
| Set value. More... | |
Properties | |
| float | base_font_size [get, set] |
| Base font size in points for body text. Default value: 10. More... | |
| string | custom_font_path [get, set] |
| Path to a TrueType font file for CJK or custom font support. More... | |
| bool | is_embed_font [get, set] |
| Whether to embed font data in the output PDF. Default value: false. | |
| float | margin_bottom [get, set] |
| Bottom margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height. | |
| float | margin_left [get, set] |
| Left margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. | |
| float | margin_right [get, set] |
| Right margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. | |
| float | margin_top [get, set] |
| Top margin in points. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height.\ Default value: More... | |
| float | page_height [get, set] |
| Page height in points. The value must be greater than 0. Default value: 792. | |
| float | page_width [get, set] |
| Page width in points. The value must be greater than 0. Default value: 612. | |
| string | style_config_path [get, set] |
| Path to a JSON style configuration file. More... | |
This class represents setting data used for converting Markdown format files to PDF format files.
|
inline |
Constructor, with parameters.
| [in] | page_width | Page width in points. The value must be greater than 0. Default value: 612. |
| [in] | page_height | Page height in points. The value must be greater than 0. Default value: 792. |
| [in] | margin_top | Top margin in points. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height.\ Default value: 72. |
| [in] | margin_bottom | Bottom margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height. |
| [in] | margin_left | Left margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. |
| [in] | margin_right | Right margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. |
| [in] | base_font_size | Base font size in points for body text. Default value: 10. |
| [in] | custom_font_path | Path to a TrueType font file for CJK or custom font support. |
| [in] | style_config_path | Path to a JSON style configuration file. |
| [in] | is_embed_font | Whether to embed font data in the output PDF. Default value: false. |
|
inline |
Set value.
| [in] | page_width | Page width in points. The value must be greater than 0. Default value: 612. |
| [in] | page_height | Page height in points. The value must be greater than 0. Default value: 792. |
| [in] | margin_top | Top margin in points. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height.\ Default value: 72. |
| [in] | margin_bottom | Bottom margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height. |
| [in] | margin_left | Left margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. |
| [in] | margin_right | Right margin in points. Default value: 72. The value must be greater than or equal to 0. The sum of left and right margins must be less than page width. |
| [in] | base_font_size | Base font size in points for body text. |
| [in] | custom_font_path | Path to a TrueType font file for CJK or custom font support. |
| [in] | style_config_path | Path to a JSON style configuration file. |
| [in] | is_embed_font | Whether to embed font data in the output PDF. |
|
getset |
Base font size in points for body text. Default value: 10.
Heading sizes are calculated as multiples of this value.
|
getset |
Path to a TrueType font file for CJK or custom font support.
When not empty, the specified font will be used for text rendering. Default value: empty string.
|
getset |
Top margin in points. The value must be greater than or equal to 0. The sum of top and bottom margins must be less than page height.\ Default value:
|
getset |
Path to a JSON style configuration file.
When not empty, per-element font/size/color/bold/italic/line_spacing settings are loaded from the specified JSON file. Default value: empty string (built-in defaults apply).