|
FoxitPDFSDKforWeb
9.0.0
Foxit PDF SDK for Web
|
Public Member Functions | |
| insertBookmark (title, pageIndex, top, left, relationship=1) | |
| Insert a new bookmark to current bookmark. Will trigger Event DataEvents.bookmarkAdded. More... | |
| remove () | |
| Remove a specified bookmark. Will trigger Event Events.bookmarkRemoved. More... | |
| setProperty (properties) | |
| Set specity bookmark properties. More... | |
Public Attributes | |
| PDFBookmark [] | children |
| An array containing all subbookmarks. | |
| string | color |
| The color of the bookmark text. text: #FFFFFF. | |
| number | id |
| An unique identity of bookmark. | |
| number | isBold |
| Whether to display bookmark text in bold font. 1 is bold, 0 is normal. | |
| number | isItalic |
| Whether to display bookmark text in italic font. 1 is italic, 0 is normal. | |
| number | left |
| The x coordinate of the page position to jump to after clicking. | |
| number | page |
| The index of the page to jump to after clicking. | |
| number | title |
| The text content of the bookmark. | |
| number | top |
| The y coordinate of the page position to jump to after clicking. | |
PDFBookmark object
|
inline |
Insert a new bookmark to current bookmark. Will trigger Event DataEvents.bookmarkAdded.
| title | string - Title string for the new bookmark. |
| pageIndex | number - The index of the destination page in the PDF document. |
| top | number - Horizontal coordinate value of a position as page's left-top position. |
| left | number - Vertical coordinate value of a position as page's left-top position. |
| [relationship=Relationship.lastChild] | Relationship - The relationship between new bookmark and current bookmark. Default value is Relationship.lastChild. Please Refer to Relationship. |
|
inline |
Remove a specified bookmark. Will trigger Event Events.bookmarkRemoved.
|
inline |
Set specity bookmark properties.
| properties | {title:string,color:number|[string,number,number,number]|string,style:number} - Will trigger Event Events.bookmarkUpdated. Supported color format:
|