|
Foxit PDF SDK
|
Public Member Functions | |
| TXT2PDFSettingData () | |
| Constructor. | |
| TXT2PDFSettingData (float page_width, float page_height, RectF page_margin, Font font, float text_size, long text_color, float linespace, boolean is_break_page) | |
| Constructor, with parameters. More... | |
| synchronized void | delete () |
| Clean up related resources immediately. More... | |
| Font | getFont () |
| Get a font object. More... | |
| boolean | getIs_break_page () |
| Get used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. More... | |
| float | getLinespace () |
| Get line spacing. More... | |
| float | getPage_height () |
| Get page height used for the converted PDF document. More... | |
| RectF | getPage_margin () |
| Get page margin used for converted PDF document. More... | |
| float | getPage_width () |
| Get page width used for the converted PDF document. More... | |
| long | getText_color () |
| Get font color. More... | |
| float | getText_size () |
| Get font size. More... | |
| void | set (float page_width, float page_height, RectF page_margin, Font font, float text_size, long text_color, float linespace, boolean is_break_page) |
| Set value. More... | |
| void | setFont (Font value) |
| Set a font object. More... | |
| void | setIs_break_page (boolean value) |
| Set used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. More... | |
| void | setLinespace (float value) |
| Set line spacing. More... | |
| void | setPage_height (float value) |
| Set page height used for the converted PDF document. More... | |
| void | setPage_margin (RectF value) |
| Set page margin used for converted PDF document. More... | |
| void | setPage_width (float value) |
| Set page width used for the converted PDF document. More... | |
| void | setText_color (long value) |
| Set font color. More... | |
| void | setText_size (float value) |
| Set font size. More... | |
This class represents setting data used for converting TXT to PDF.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.TXT2PDFSettingData | ( | float | page_width, |
| float | page_height, | ||
| RectF | page_margin, | ||
| Font | font, | ||
| float | text_size, | ||
| long | text_color, | ||
| float | linespace, | ||
| boolean | is_break_page | ||
| ) |
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. |
| synchronized void com.foxit.sdk.addon.conversion.TXT2PDFSettingData.delete | ( | ) |
Clean up related resources immediately.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getFont | ( | ) |
Get a font object.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getIs_break_page | ( | ) |
Get used to decide whether to insert a page break in converted PDF document when meeting character 0x0c.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getLinespace | ( | ) |
Get line spacing.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getPage_height | ( | ) |
Get page height used for the converted PDF document.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getPage_margin | ( | ) |
Get page margin used for converted PDF document.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getPage_width | ( | ) |
Get page width used for the converted PDF document.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getText_color | ( | ) |
Get font color.
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.getText_size | ( | ) |
Get font size.
| void com.foxit.sdk.addon.conversion.TXT2PDFSettingData.set | ( | float | page_width, |
| float | page_height, | ||
| RectF | page_margin, | ||
| Font | font, | ||
| float | text_size, | ||
| long | text_color, | ||
| float | linespace, | ||
| boolean | is_break_page | ||
| ) |
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. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setFont | ( | Font | value | ) |
Set a font object.
| [in] | value | A font object. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setIs_break_page | ( | boolean | value | ) |
Set used to decide whether to insert a page break in converted PDF document when meeting character 0x0c.
| [in] | value | Used to decide whether to insert a page break in converted PDF document when meeting character 0x0c. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setLinespace | ( | float | value | ) |
Set line spacing.
| [in] | value | Line spacing. If valid, it should be above 0. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setPage_height | ( | float | value | ) |
Set page height used for the converted PDF document.
| [in] | value | Page height used for the converted PDF document. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setPage_margin | ( | RectF | value | ) |
Set page margin used for converted PDF document.
| [in] | value | Page margin used for converted PDF document. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setPage_width | ( | float | value | ) |
Set page width used for the converted PDF document.
| [in] | value | Page width used for the converted PDF document. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setText_color | ( | long | value | ) |
Set font color.
| [in] | value | Font color. |
| com.foxit.sdk.addon.conversion.TXT2PDFSettingData.setText_size | ( | float | value | ) |
Set font size.
| [in] | value | Font size. If valid, it should be above 0. |