Foxit PDF Conversion SDK
PDFConversionSDK.Md2PDFSettingData Class Reference

Public Member Functions

 constructor (page_width?, page_height?, margin_top?, margin_bottom?, margin_left?, margin_right?, base_font_size?, custom_font_path?, style_config_path?, is_embed_font?)
 Constructor, with parameters. More...
 
 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...
 

Detailed Description

This class represents setting data used for converting Markdown files to PDF files.

Member Function Documentation

◆ constructor()

PDFConversionSDK.Md2PDFSettingData.constructor (   page_width?,
  page_height?,
  margin_top?,
  margin_bottom?,
  margin_left?,
  margin_right?,
  base_font_size?,
  custom_font_path?,
  style_config_path?,
  is_embed_font? 
)
inline

Constructor, with parameters.

Parameters
[in]page_widthPage width in points. The value must be greater than 0. Default value: 612.
[in]page_heightPage height in points. The value must be greater than 0. Default value: 612.
[in]margin_topTop 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_bottomBottom 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_leftLeft 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_rightRight 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_sizeBase font size for the PDF content, in points. Default value: 12.
[in]custom_font_pathPath of a custom font file to be used for the conversion. Default value: an empty string which means no custom font is provided.
[in]style_config_pathPath of a style configuration file to be used for the conversion. Default value: an empty string which means no style configuration is provided.
[in]is_embed_fontA boolean value which indicates whether to embed font in the converted PDF file. Default value: true. true means to embed font in the converted PDF file. false means not to embed font in the converted PDF file.

◆ Set()

PDFConversionSDK.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 
)
inline

Set value.

Parameters
[in]page_widthPage width in points. The value must be greater than 0. Default value: 612.
[in]page_heightPage height in points. The value must be greater than 0. Default value: 612.
[in]margin_topTop 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_bottomBottom 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_leftLeft 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_rightRight 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_sizeBase font size for the PDF content, in points.
[in]custom_font_pathPath of a custom font file to be used for the conversion.
[in]style_config_pathPath of a style configuration file to be used for the conversion.
[in]is_embed_fontA boolean value which indicates whether to embed font in the converted PDF file. true means to embed font in the converted PDF file. false means not to embed font in the converted PDF file.
Returns
None.