Foxit PDF SDK
|
Inherits Object.
Public Member Functions | |
TXT2PDFSettingData () | |
Constructor. | |
TXT2PDFSettingData (float page_width, float page_height, RectF page_margin, const common::Font &font, float text_size, ARGB text_color, float linespace, bool is_break_page) | |
Constructor, with parameters. More... | |
TXT2PDFSettingData & | operator= (const TXT2PDFSettingData &data) |
Assign operator. More... | |
void | Set (float page_width, float page_height, RectF page_margin, const common::Font &font, float text_size, ARGB text_color, float linespace, bool is_break_page) |
Set value. More... | |
Public Attributes | |
common::Font | font |
A font object. | |
bool | is_break_page |
Used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. | |
float | linespace |
Line spacing. If valid, it should be above 0. | |
float | page_height |
Page height used for the converted PDF document. | |
RectF | page_margin |
Page margin used for converted PDF document. More... | |
float | page_width |
Page width used for the converted PDF document. | |
ARGB | text_color |
Font color. | |
float | text_size |
Font size. If valid, it should be above 0. | |
This class represents setting data used for converting TXT to PDF.
|
inline |
Constructor, with parameters.
[in] | page_width | Page width used for the converted PDF document. |
[in] | page_height | Page height used for the converted PDF document. |
[in] | page_margin | Page margin used for converted PDF document. |
[in] | font | Font object used for converted PDF document. |
[in] | text_size | Font size used for converted PDF document. |
[in] | text_color | Font color used for converted PDF document. |
[in] | linespace | Line space used for converted PDF document. |
[in] | is_break_page | Used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. |
|
inline |
Assign operator.
[in] | data | Another TXT-to-PDF setting data object, whose value would be assigned to current object. |
|
inline |
Set value.
[in] | page_width | Page width used for the converted PDF document. |
[in] | page_height | Page height used for the converted PDF document. |
[in] | page_margin | Page margin used for converted PDF document. |
[in] | font | Font object used for converted PDF document. |
[in] | text_size | Font size used for converted PDF document. |
[in] | text_color | Font color used for converted PDF document. |
[in] | linespace | Line space used for converted PDF document. |
[in] | is_break_page | Used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. |
RectF foxit::addon::conversion::TXT2PDFSettingData::page_margin |
Page margin used for converted PDF document.