FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
|
Public Member Functions | |
addMarkedState (stateName) | |
Add marked state with specific name [Support in Server] More... | |
addReply (content) | |
Add a new reply to the end of reply list. [Support in Server] More... | |
addReviewState (stateName) | |
Add review state with specific name. [Support in Server] More... | |
addRichText (datas) | |
Add new text data with rich styles to the end. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation. More... | |
exportToJSON () | |
Export annotation to a json object. [Support in Server] Override Annot::exportToJSON. More... | |
getCreateDateTime () | |
Get creation date time. [Support in Server] More... | |
getGroupElements () | |
Get the group annotations which own current annotation. [Support in Server] More... | |
getGroupHeader () | |
Get the header annotation (as primary annotation) of the group that current markup annotation belongs to. [Support in Server] More... | |
getIntent () | |
Get intent name. Following annotation types have predefined intent name: More... | |
getMarkedState (index) | |
Get a state annotation by index. state model is marked [Support in Server] More... | |
getMarkedStateCount () | |
Get the count of state annotations. [Support in Server] More... | |
getMarkedStates () | |
Get all state annotation. state model is marked [Support in Server] More... | |
getOpacity () | |
Get opacity value. This property has effect on markup annotation's appearance. [Support in Server] More... | |
getPopup () | |
Get annotation's popup. [Support in Server] More... | |
getReplies () | |
Get all replies [Support in Server] More... | |
getReply (index) | |
Get a reply annot by index. [Support in Server] More... | |
getReplyCount () | |
Count all replies. [Support in Server] More... | |
getReviewState (index) | |
Get a state annotation by index. state model is review [Support in Server] More... | |
getReviewStateCount () | |
Get the count of state annotations. [Support in Server] When state model is review, the markup annotation can have several state annotations in a chain: first state annotation refers to the markup annotation, second state annotation refers to the first state annotation, etc. Just like this: markup annotation <– reviewed state1 <– reviewed state2 ... More... | |
getReviewStates () | |
Get all state annotation. state model is review [Support in Server] More... | |
getRichText () | |
Get the rich text data, including rich text strings and styles. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation. More... | |
getSubject () | |
Get subject string. [Support in Server] More... | |
getTitle () | |
Get title string. [Support in Server] More... | |
insertRichText (datas) | |
Insert rich text string to the place which is specified by indexs. More... | |
isGrouped () | |
Check whether current markup annotation is in a group or not. [Support in Server] More... | |
isGroupHeader () | |
Check whether current markup annotation is a group header annotation. [Support in Server] More... | |
removeAllStateAnnots () | |
Remove all sate from this markup annotation. [Support in Server] More... | |
removeRichText (indexes) | |
Remove a rich text string specified by index. More... | |
setContent (content) | |
Set markup annotation's contents. [Support in Server] More... | |
setCreateDateTime (date) | |
Set creation date time. [Support in Server] More... | |
setIntent (intent) | |
Set annotaions's intent. More... | |
setOpacity (opacity) | |
Set opacity value. [Support in Server] More... | |
setRichText (datas) | |
Set the rich text data with rich styles to the place which is specified by indexes. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text alignment of input style will be set to all rich text strings of current freetext annotation. More... | |
setSubject (subject) | |
Set subject string. [Support in Server] More... | |
setTitle (title) | |
Set title string. [Support in Server] More... | |
Public Member Functions inherited from Annot | |
exportToJSON () | |
Export the current annotation to a Json object. [Support in Server] More... | |
getBorderColor () | |
Get annotation's border color. [Support in Server] More... | |
getBorderInfo () | |
Get annotation's border information. [Support in Server] More... | |
getContent () | |
Get annotation's contents. [Support in Server] More... | |
getDictionaryEntry (key) | |
Get the dictionary property of Annot by key. More... | |
getFlags () | |
Get annotation's flag. [Support in Server] More... | |
getModifiedDateTime () | |
Get annotation's last modified date time. [Support in Server] More... | |
getObjectNumber () | |
Get annotation's object number. More... | |
getPage () | |
Get annotation's page. [Support in Server] More... | |
getRect () | |
Get annotation's rect. [Support in Server] More... | |
getTitle () | |
Get annotation's title. [Support in Server] More... | |
getType () | |
Get annotation's type. [Support in Server] More... | |
getUniqueID () | |
Get annotation's unique ID. [Support in Server] More... | |
isEmpty () | |
Check annotation is empty or not. [Support in Server] More... | |
isMarkup () | |
Check if current annotation is a markup annotation. [Support in Server] More... | |
setBorderColor (borderColor) | |
Set annotation's border color. [Support in Server] More... | |
setBorderInfo (borderInfo) | |
Set annotation's border information. [Support in Server] More... | |
setContent (content) | |
Set contents for the currently gotten annotation. [Support in Server] More... | |
setCustomAPStream (appearanceType, appearanceStream) | |
setDictionaryEntry (key, value) | |
Add a new entry or replace the existing entry of the annotation dictionary. Caller could use this method to store their private data to the annotation. Do not use any standard key of the annotation dictionary, such as 'Type', 'Subtype', 'Rect' defined in PDF Reference. If any standard key is used, this behaviour will be undefined. More... | |
setFlags (flag, notTriggerEvent) | |
Set annotation's flag. [Support in Server] More... | |
setModifiedDateTime (date) | |
Set annotation's last modified date time. [Support in Server] More... | |
setRect (rect) | |
Set annotation's rect. More... | |
Markup annot object.
|
inline |
Add marked state with specific name [Support in Server]
stateName | string - PDF.annots.constant.MARKUP_ANNOTATION_STATE |
|
inline |
Add a new reply to the end of reply list. [Support in Server]
content | string - Contents of reply annot. |
|
inline |
Add review state with specific name. [Support in Server]
stateName | string - markup annotation review/mark state. Please refer to MARKUP_ANNOTATION_STATE. |
|
inline |
Add new text data with rich styles to the end. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation.
datas | object[] - An array of rich text data. |
datas[].content | string - Text string to be set as content for specified rich text. This should not be an empty string. |
datas[].richTextStyle | object - The style data of a rich text string |
datas[].richTextStyle.font | object - A valid font object. |
datas[].richTextStyle.font.name | string - the face name of the font. If it`s a standard font, the font styles and charset will not work. The standard font are 'Courier','Courier-Bold','Courier-BoldOblique','Courier-Oblique', 'Helvetica','Helvetica-Bold','Helvetica-BoldOblique','Helvetica-Oblique','Times-Roman', 'Times-Bold','Times-BoldItalic','Times-Italic','Symbol','ZapfDingbats'. While using 'Symbol' or 'ZapfDingbats, the parameter "richTextStyle.isBold" and "richTextStyle.isItalic" will not work. If it`s a custom font, you should call PDFViewer.setJRFontMap to map the available fonts. |
datas[].richTextStyle.font.styles | number - The font styles. Please refer to Font_Styles . |
datas[].richTextStyle.font.charset | number - The charset of the font. Please refer to Font_Charset or Font_CIDCharset . |
datas[].richTextStyle.textSize | number - Text size. It should not be negative value. 0 means text will not be shown. |
datas[].richTextStyle.textAlignment | number - Alignment value. Please Refer to Alignment . |
datas[].richTextStyle.textColor | number - Text color. Format: 0xRRGGBB. |
datas[].richTextStyle.isBold | boolean - A boolean value which indicates whether to make text bold or not. |
datas[].richTextStyle.isItalic | boolean - A boolean value which indicates whether to italicize text or not. |
datas[].richTextStyle.isUnderline | boolean - A boolean value which indicates whether to underline text or not. |
datas[].richTextStyle.isStrikethrough | boolean - A boolean value which indicates whether to cross text out with strike through or not. |
datas[].richTextStyle.cornerMarkStyle | number - Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. 1 - Corner mark style: none. 2 - Corner mark style: superscript. 3 - Corner mark style: subscript. |
|
inline |
Export annotation to a json object. [Support in Server] Override Annot::exportToJSON.
|
inline |
Get creation date time. [Support in Server]
|
inline |
Get the group annotations which own current annotation. [Support in Server]
|
inline |
Get the header annotation (as primary annotation) of the group that current markup annotation belongs to. [Support in Server]
|
inline |
Get intent name.
Following annotation types have predefined intent name:
|
inline |
Get a state annotation by index. state model is marked [Support in Server]
index | number - State annotation's index. |
|
inline |
Get the count of state annotations. [Support in Server]
Usually, when state model is marked, the markup annotation only has one state annotation.
|
inline |
Get all state annotation. state model is marked [Support in Server]
|
inline |
Get opacity value.
This property has effect on markup annotation's appearance. [Support in Server]
|
inline |
Get annotation's popup. [Support in Server]
|
inline |
Get all replies [Support in Server]
|
inline |
Get a reply annot by index. [Support in Server]
index | number - An integer indicating reply annotation's position. |
|
inline |
Count all replies. [Support in Server]
|
inline |
Get a state annotation by index. state model is review [Support in Server]
index | number - Review annotation's index. |
|
inline |
Get the count of state annotations. [Support in Server]
When state model is review, the markup annotation can have several state annotations in a chain: first state annotation refers to the markup annotation, second state annotation refers to the first state annotation, etc. Just like this: markup annotation <– reviewed state1 <– reviewed state2 ...
|
inline |
Get all state annotation. state model is review [Support in Server]
|
inline |
Get the rich text data, including rich text strings and styles. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation.
|
inline |
Get subject string. [Support in Server]
|
inline |
Get title string. [Support in Server]
|
inline |
Insert rich text string to the place which is specified by indexs.
Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation.
datas | object[] - An array of rich text data. |
datas[].index | number - Index for a rich text string whose style data is to be inserted at. Valid range: from 0 to (count-1). count is returned by function getRichText. If input value is equal to rich text string count, that means to add the new rich text string to the end. In this case, this funcion equals to function AddRichText. |
datas[].content | string - Text string to be set as content for specified rich text. This should not be an empty string. |
datas[].richTextStyle | object - The style data of a rich text string |
datas[].richTextStyle.font | object - A valid font object. |
datas[].richTextStyle.font.name | string - the face name of the font. If it`s a standard font, the font styles and charset will not work. The standard font are 'Courier','Courier-Bold','Courier-BoldOblique','Courier-Oblique', 'Helvetica','Helvetica-Bold','Helvetica-BoldOblique','Helvetica-Oblique','Times-Roman', 'Times-Bold','Times-BoldItalic','Times-Italic','Symbol','ZapfDingbats'. While using 'Symbol' or 'ZapfDingbats, the parameter "richTextStyle.isBold" and "richTextStyle.isItalic" will not work. If it`s a custom font, you should call PDFViewer.setJRFontMap to map the available fonts. |
datas[].richTextStyle.font.styles | number - The font styles. Please refer to Font_Styles . |
datas[].richTextStyle.font.charset | number - The charset of the font. Please refer to Font_Charset or Font_CIDCharset . |
datas[].richTextStyle.textSize | number - Text size. It should not be negative value. 0 means text will not be shown. |
datas[].richTextStyle.textAlignment | number - Alignment value. Please Refer to Alignment . |
datas[].richTextStyle.textColor | number - Text color. Format: 0xRRGGBB. |
datas[].richTextStyle.isBold | boolean - A boolean value which indicates whether to make text bold or not. |
datas[].richTextStyle.isItalic | boolean - A boolean value which indicates whether to italicize text or not. |
datas[].richTextStyle.isUnderline | boolean - A boolean value which indicates whether to underline text or not. |
datas[].richTextStyle.isStrikethrough | boolean - A boolean value which indicates whether to cross text out with strike through or not. |
datas[].richTextStyle.cornerMarkStyle | number - Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. 1 - Corner mark style: none. 2 - Corner mark style: superscript. 3 - Corner mark style: subscript. |
|
inline |
Check whether current markup annotation is in a group or not. [Support in Server]
|
inline |
Check whether current markup annotation is a group header annotation. [Support in Server]
|
inline |
Remove all sate from this markup annotation. [Support in Server]
|
inline |
Remove a rich text string specified by index.
Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text aligment of input style will be set to all rich text strings of current freetext annotation.
indexes | number[] - An array of index. Index for a rich text string whose style data is to be inserted at. Valid range: from 0 to (count-1). |
|
inline |
Set markup annotation's contents. [Support in Server]
content | string - New contents to be setted. |
|
inline |
|
inline |
Set annotaions's intent.
intent | string - Annotation's new intent. |
|
inline |
Set opacity value. [Support in Server]
opacity | number - The new opacity value. Valid range: 0.0 to 1.0. 0.0 means full transparency and 1.0 means full opaque. |
|
inline |
Set the rich text data with rich styles to the place which is specified by indexes. Note: Now, only support Freetext annotation. if current annotation is a freetext and its intent is "FreeTextTypewriter", text alignment of input style will be set to all rich text strings of current freetext annotation.
datas | object[] - An array of rich text data. |
datas[].index | number - Index for a rich text string whose content is to be retrieved. Valid range: from 0 to (count-1). count is returned by function getRichText. |
datas[].content | string - Text string to be set as content for specified rich text. This should not be an empty string. |
datas[].richTextStyle | object - The style data of a rich text string |
datas[].richTextStyle.font | object - A valid font object. |
datas[].richTextStyle.font.name | string - the face name of the font. If it`s a standard font, the font styles and charset will not work. The standard font are 'Courier','Courier-Bold','Courier-BoldOblique','Courier-Oblique', 'Helvetica','Helvetica-Bold','Helvetica-BoldOblique','Helvetica-Oblique','Times-Roman', 'Times-Bold','Times-BoldItalic','Times-Italic','Symbol','ZapfDingbats'. While using 'Symbol' or 'ZapfDingbats, the parameter "richTextStyle.isBold" and "richTextStyle.isItalic" will not work. If it`s a custom font, you should call PDFViewer.setJRFontMap to map the available fonts. |
datas[].richTextStyle.font.styles | number - The font styles. Please refer to Font_Styles . |
datas[].richTextStyle.font.charset | number - The charset of the font. Please refer to Font_Charset or Font_CIDCharset . |
datas[].richTextStyle.textSize | number - Text size. It should not be negative value. 0 means text will not be shown. |
datas[].richTextStyle.textAlignment | number - Alignment value. Please Refer to Alignment . |
datas[].richTextStyle.textColor | number - Text color. Format: 0xRRGGBB. |
datas[].richTextStyle.isBold | boolean - A boolean value which indicates whether to make text bold or not. |
datas[].richTextStyle.isItalic | boolean - A boolean value which indicates whether to italicize text or not. |
datas[].richTextStyle.isUnderline | boolean - A boolean value which indicates whether to underline text or not. |
datas[].richTextStyle.isStrikethrough | boolean - A boolean value which indicates whether to cross text out with strike through or not. |
datas[].richTextStyle.cornerMarkStyle | number - Corner mark style which can be used to make text as superscript or subscript or not as any kind of corner mark. 1 - Corner mark style: none. 2 - Corner mark style: superscript. 3 - Corner mark style: subscript. |
|
inline |