|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetBase_font_size () |
| Get base font size in points for body text. More... | |
| def | GetCustom_font_path () |
| Get path to a TrueType font file for CJK or custom font support. More... | |
| def | GetIs_embed_font () |
| Get whether to embed font data in the output PDF. More... | |
| def | GetMargin_bottom () |
| Get bottom margin in points. More... | |
| def | GetMargin_left () |
| Get left margin in points. More... | |
| def | GetMargin_right () |
| Get right margin in points. More... | |
| def | GetMargin_top () |
| Get top margin in points. More... | |
| def | GetPage_height () |
| Get page height in points. More... | |
| def | GetPage_width () |
| Get page width in points. More... | |
| def | GetStyle_config_path () |
| Get path to a JSON style configuration file. More... | |
| def | Set (page_width, page_height, margin_top, margin_bottom, margin_left, margin_right, base_font_size, custom_font_path, style_config_path, is_embed_font) |
| Set value. More... | |
| def | SetBase_font_size (value) |
| Set base font size in points for body text. More... | |
| def | SetCustom_font_path (value) |
| Set path to a TrueType font file for CJK or custom font support. More... | |
| def | SetIs_embed_font (value) |
| Set whether to embed font data in the output PDF. More... | |
| def | SetMargin_bottom (value) |
| Set bottom margin in points. More... | |
| def | SetMargin_left (value) |
| Set left margin in points. More... | |
| def | SetMargin_right (value) |
| Set right margin in points. More... | |
| def | SetMargin_top (value) |
| Set top margin in points. More... | |
| def | SetPage_height (value) |
| Set page height in points. More... | |
| def | SetPage_width (value) |
| Set page width in points. More... | |
| def | SetStyle_config_path (value) |
| Set path to a JSON style configuration file. More... | |
This class represents setting data used for converting Markdown format files to PDF format files.
| fsdk.Md2PDFSettingData.GetBase_font_size | ( | ) |
Get base font size in points for body text.
Heading sizes are calculated as multiples of this value.
| fsdk.Md2PDFSettingData.GetCustom_font_path | ( | ) |
Get 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.
| fsdk.Md2PDFSettingData.GetIs_embed_font | ( | ) |
Get whether to embed font data in the output PDF.
| fsdk.Md2PDFSettingData.GetMargin_bottom | ( | ) |
Get bottom margin in points.
| fsdk.Md2PDFSettingData.GetMargin_left | ( | ) |
Get left margin in points.
| fsdk.Md2PDFSettingData.GetMargin_right | ( | ) |
Get right margin in points.
| fsdk.Md2PDFSettingData.GetMargin_top | ( | ) |
Get top margin in points.
| fsdk.Md2PDFSettingData.GetPage_height | ( | ) |
Get page height in points.
| fsdk.Md2PDFSettingData.GetPage_width | ( | ) |
Get page width in points.
| fsdk.Md2PDFSettingData.GetStyle_config_path | ( | ) |
Get 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).
| def fsdk.Md2PDFSettingData.Set | ( | page_width, | |
| page_height, | |||
| margin_top, | |||
| margin_bottom, | |||
| margin_left, | |||
| margin_right, | |||
| base_font_size, | |||
| custom_font_path, | |||
| style_config_path, | |||
| is_embed_font | |||
| ) |
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. |
| fsdk.Md2PDFSettingData.SetBase_font_size | ( | value | ) |
Set base font size in points for body text.
Heading sizes are calculated as multiples of this value.
| [in] | value | Base font size in points for body text. Default value: 10. |
| fsdk.Md2PDFSettingData.SetCustom_font_path | ( | value | ) |
Set 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.
| [in] | value | Path to a TrueType font file for CJK or custom font support. |
| fsdk.Md2PDFSettingData.SetIs_embed_font | ( | value | ) |
Set whether to embed font data in the output PDF.
| [in] | value | Whether to embed font data in the output PDF. Default value: false. |
| fsdk.Md2PDFSettingData.SetMargin_bottom | ( | value | ) |
Set bottom margin in points.
| [in] | value | 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. |
| fsdk.Md2PDFSettingData.SetMargin_left | ( | value | ) |
Set left margin in points.
| [in] | value | 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. |
| fsdk.Md2PDFSettingData.SetMargin_right | ( | value | ) |
Set right margin in points.
| [in] | value | 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. |
| fsdk.Md2PDFSettingData.SetMargin_top | ( | value | ) |
Set top margin in points.
| [in] | value | 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: |
| fsdk.Md2PDFSettingData.SetPage_height | ( | value | ) |
Set page height in points.
| [in] | value | Page height in points. The value must be greater than 0. Default value: 792. |
| fsdk.Md2PDFSettingData.SetPage_width | ( | value | ) |
Set page width in points.
| [in] | value | Page width in points. The value must be greater than 0. Default value: 612. |
| fsdk.Md2PDFSettingData.SetStyle_config_path | ( | value | ) |
Set 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).
| [in] | value | Path to a JSON style configuration file. |