FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
Public Member Functions | |
getAction () | |
Get screen's action. [Support in Server] More... | |
getImage (type) | |
getOpacity () | |
Get opacity value. [Support in Server] This property has effect on markup annotation's appearance. More... | |
getRotation () | |
Get the rotation of the image used for the appearance of current screen annotation. More... | |
removeAction (trigger=-1, action) | |
Remove screen's action. More... | |
setImage (buffer) | |
Set screen's image. More... | |
setOpacity (opacity) | |
Set opacity value. [Support in Server] More... | |
setRotation (rotation) | |
Set the rotation of the image used for the appearance of current screen annotation. 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... | |
Screen annot object.
|
inline |
Get screen's action. [Support in Server]
|
inline |
Get the image data by the specified type.
[type='canvas'] | 'canvas'|'image'|'buffer' - The data type, valid value: 'canvas' | 'image' | 'buffer'. |
|
inline |
Get opacity value. [Support in Server]
This property has effect on markup annotation's appearance.
|
inline |
Get the rotation of the image used for the appearance of current screen annotation.
|
inline |
Remove screen's action.
|
inline |
Set screen's image.
buffer | ArrayBuffer -The raw image buffer, supported types are jpeg/png/bmp.. |
|
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 rotation of the image used for the appearance of current screen annotation.
rotation | 0|90|180|270 - Rotation value. this should be one of these values : 0, 90, 180, 270. |