Foxit PDF SDK
|
Public Member Functions | |
TableOfContentsConfig () | |
Constructor. | |
TableOfContentsConfig (String title, Int32Array bookmark_level_array, boolean is_show_serial_number, boolean include_toc_pages) | |
Constructor, with parameter. More... | |
synchronized void | delete () |
Clean up related resources immediately. More... | |
Int32Array | getBookmark_level_array () |
Get a bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents". More... | |
boolean | getInclude_toc_pages () |
Get true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents. More... | |
boolean | getIs_show_serial_number () |
Get true means to show the serial number in the table of contents, while false means not to show the serial number. More... | |
String | getTitle () |
Get title for the table of contents. More... | |
void | set (String title, Int32Array bookmark_level_array, boolean is_show_serial_number, boolean include_toc_pages) |
Set value. More... | |
void | setBookmark_level_array (Int32Array value) |
Set a bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents". More... | |
void | setInclude_toc_pages (boolean value) |
Set true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents. More... | |
void | setIs_show_serial_number (boolean value) |
Set true means to show the serial number in the table of contents, while false means not to show the serial number. More... | |
void | setTitle (String value) |
Set title for the table of contents. More... | |
This class represents the table of contents configuration.
com.foxit.sdk.pdf.TableOfContentsConfig.TableOfContentsConfig | ( | String | title, |
Int32Array | bookmark_level_array, | ||
boolean | is_show_serial_number, | ||
boolean | include_toc_pages | ||
) |
Constructor, with parameter.
[in] | title | Title for the table of contents. |
[in] | bookmark_level_array | A bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents". |
[in] | is_show_serial_number | true means to show the serial number in the table of contents, while false means not to show the serial number. |
[in] | include_toc_pages | true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents. |
synchronized void com.foxit.sdk.pdf.TableOfContentsConfig.delete | ( | ) |
Clean up related resources immediately.
com.foxit.sdk.pdf.TableOfContentsConfig.getBookmark_level_array | ( | ) |
Get a bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents".
com.foxit.sdk.pdf.TableOfContentsConfig.getInclude_toc_pages | ( | ) |
Get true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents.
com.foxit.sdk.pdf.TableOfContentsConfig.getIs_show_serial_number | ( | ) |
Get true means to show the serial number in the table of contents, while false means not to show the serial number.
com.foxit.sdk.pdf.TableOfContentsConfig.getTitle | ( | ) |
Get title for the table of contents.
void com.foxit.sdk.pdf.TableOfContentsConfig.set | ( | String | title, |
Int32Array | bookmark_level_array, | ||
boolean | is_show_serial_number, | ||
boolean | include_toc_pages | ||
) |
Set value.
[in] | title | Title for the table of contents. |
[in] | bookmark_level_array | A bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents". |
[in] | is_show_serial_number | true means to show the serial number in the table of contents, while false means not to show the serial number. |
[in] | include_toc_pages | true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents. |
@ return None.
com.foxit.sdk.pdf.TableOfContentsConfig.setBookmark_level_array | ( | Int32Array | value | ) |
Set a bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents".
[in] | value | A bookmark level array which is used to specify bookmarks to be used to generate "Table of Contents". For each element in input array, valid range : from 1 to(depth). depth is returned by function PDFDoc.getBookmarkLevelDepth . If input array is an empty array, that means all bookmarks are used to generate "Table of Contents". |
com.foxit.sdk.pdf.TableOfContentsConfig.setInclude_toc_pages | ( | boolean | value | ) |
Set true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents.
[in] | value | true means to include catalog page(s) in the calculation of pages number in the table of contents, while false means to exclude catalog page(s) from the calculation of pages number in the table of contents. |
com.foxit.sdk.pdf.TableOfContentsConfig.setIs_show_serial_number | ( | boolean | value | ) |
Set true means to show the serial number in the table of contents, while false means not to show the serial number.
[in] | value | true means to show the serial number in the table of contents, while false means not to show the serial number. |
com.foxit.sdk.pdf.TableOfContentsConfig.setTitle | ( | String | value | ) |
Set title for the table of contents.
[in] | value | Title for the table of contents. If this is an empty string, the default value "Table of Contents" will be used. |