Foxit PDF SDK
|
Public Member Functions | |
HTML2PDFSettingData () | |
Constructor. | |
HTML2PDFSettingData (float page_width, float page_height, boolean is_to_page_scale, RectF page_margin, boolean is_convert_link, int rotate_degrees, boolean is_generate_tag, int page_mode) | |
Constructor, with parameters. More... | |
boolean | getIs_convert_link () |
Get used to decide whether the web link should be coverted or not. More... | |
boolean | getIs_generate_tag () |
Get used to decide whether the tag should be generated or not. More... | |
boolean | getIs_to_page_scale () |
Get used to decide whether to scale the coverted PDF page or not. More... | |
float | getPage_height () |
Get the page height used for the coverted PDF document. More... | |
RectF | getPage_margin () |
Get the page margin used for coverted PDF document. More... | |
int | getPage_mode () |
Get the page mode used for the converting. More... | |
float | getPage_width () |
Get the page width used for the coverted PDF document. More... | |
int | getRotate_degrees () |
Get the rotation degree used for the coverted PDF page. More... | |
void | set (float page_width, float page_height, boolean is_to_page_scale, RectF page_margin, boolean is_convert_link, int rotate_degrees, boolean is_generate_tag, int page_mode) |
Set value. More... | |
void | setIs_convert_link (boolean value) |
Set used to decide whether the web link should be coverted or not. More... | |
void | setIs_generate_tag (boolean value) |
Set used to decide whether the tag should be generated or not. More... | |
void | setIs_to_page_scale (boolean value) |
Set used to decide whether to scale the coverted PDF page or not. More... | |
void | setPage_height (float value) |
Set the page height used for the coverted PDF document. More... | |
void | setPage_margin (RectF value) |
Set the page margin used for coverted PDF document. More... | |
void | setPage_mode (int value) |
Set the page mode used for the converting. More... | |
void | setPage_width (float value) |
Set the page width used for the coverted PDF document. More... | |
void | setRotate_degrees (int value) |
Set the rotation degree used for the coverted PDF page. More... | |
Static Public Attributes | |
static final int | e_PageModeMultiplePage = 1 |
Multiple page mode. | |
static final int | e_PageModeSinglePage = 0 |
Single page mode. | |
This class represents setting data used for converting HTML to PDF.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.HTML2PDFSettingData | ( | float | page_width, |
float | page_height, | ||
boolean | is_to_page_scale, | ||
RectF | page_margin, | ||
boolean | is_convert_link, | ||
int | rotate_degrees, | ||
boolean | is_generate_tag, | ||
int | page_mode | ||
) |
Constructor, with parameters.
[in] | page_width | The page width used for the coverted PDF document. |
[in] | page_height | The page height used for the coverted PDF document. This would be ignored if page mode com.foxit.sdk.addon.conversion.HTML2PDFSettingData.e_PageModeSinglePage is used. |
[in] | is_to_page_scale | Used to decide whether to scale the coverted PDF page or not. |
[in] | page_margin | The page margin used for coverted PDF document. |
[in] | is_convert_link | Used to decide whether the web link should be coverted or not. |
[in] | rotate_degrees | The rotation degree used for the coverted PDF page.Please refer to values starting from com.foxit.sdk.common.Constants.e_Rotation0 and this should be one of these values. |
[in] | is_generate_tag | Used to decide whether the tag should be generated or not. |
[in] | page_mode | The page mode used for the converting.. Please refer to values starting from com.foxit.sdk.addon.conversion.HTML2PDFSettingData.e_PageModeSinglePage and this should be one of these values. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getIs_convert_link | ( | ) |
Get used to decide whether the web link should be coverted or not.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getIs_generate_tag | ( | ) |
Get used to decide whether the tag should be generated or not.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getIs_to_page_scale | ( | ) |
Get used to decide whether to scale the coverted PDF page or not.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getPage_height | ( | ) |
Get the page height used for the coverted PDF document.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getPage_margin | ( | ) |
Get the page margin used for coverted PDF document.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getPage_mode | ( | ) |
Get the page mode used for the converting.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getPage_width | ( | ) |
Get the page width used for the coverted PDF document.
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.getRotate_degrees | ( | ) |
Get the rotation degree used for the coverted PDF page.
void com.foxit.sdk.addon.conversion.HTML2PDFSettingData.set | ( | float | page_width, |
float | page_height, | ||
boolean | is_to_page_scale, | ||
RectF | page_margin, | ||
boolean | is_convert_link, | ||
int | rotate_degrees, | ||
boolean | is_generate_tag, | ||
int | page_mode | ||
) |
Set value.
[in] | page_width | The page width used for the coverted PDF document. |
[in] | page_height | The page height used for the coverted PDF document. This would be ignored if page mode com.foxit.sdk.addon.conversion.HTML2PDFSettingData.e_PageModeSinglePage is used. |
[in] | is_to_page_scale | Used to decide whether to scale the coverted PDF page or not. |
[in] | page_margin | The page margin used for coverted PDF document. |
[in] | is_convert_link | Used to decide whether the web link should be coverted or not. |
[in] | rotate_degrees | The rotation degree used for the coverted PDF page.Please refer to values starting from com.foxit.sdk.common.Constants.e_Rotation0 and this should be one of these values. |
[in] | is_generate_tag | Used to decide whether the tag should be generated or not. |
[in] | page_mode | The page mode used for the converting.. Please refer to values starting from com.foxit.sdk.addon.conversion.HTML2PDFSettingData.e_PageModeSinglePage and this should be one of these values. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setIs_convert_link | ( | boolean | value | ) |
Set used to decide whether the web link should be coverted or not.
[in] | value | Used to decide whether the web link should be coverted or not. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setIs_generate_tag | ( | boolean | value | ) |
Set used to decide whether the tag should be generated or not.
[in] | value | Used to decide whether the tag should be generated or not. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setIs_to_page_scale | ( | boolean | value | ) |
Set used to decide whether to scale the coverted PDF page or not.
[in] | value | Used to decide whether to scale the coverted PDF page or not. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setPage_height | ( | float | value | ) |
Set the page height used for the coverted PDF document.
[in] | value | The page height used for the coverted PDF document. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setPage_margin | ( | RectF | value | ) |
Set the page margin used for coverted PDF document.
[in] | value | The page margin used for coverted PDF document. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setPage_mode | ( | int | value | ) |
Set the page mode used for the converting.
[in] | value | The page mode used for the converting. Please refer to values starting from com.foxit.sdk.addon.conversion.HTML2PDFSettingData.e_PageModeSinglePage and this should be one of these values. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setPage_width | ( | float | value | ) |
Set the page width used for the coverted PDF document.
[in] | value | The page width used for the coverted PDF document. |
com.foxit.sdk.addon.conversion.HTML2PDFSettingData.setRotate_degrees | ( | int | value | ) |
Set the rotation degree used for the coverted PDF page.
[in] | value | The rotation degree used for the coverted PDF page.Please refer to values starting from com.foxit.sdk.common.Constants.e_Rotation0 and this should be one of these values. |