FoxitPDFSDKforWeb  7.1.1
Foxit PDF SDK for Web
FileAttachment Class Reference

FileAttachment annot object. More...

Inheritance diagram for FileAttachment:
Markup Annot

Public Member Functions

 setIconName (iconName)
 Set annotation's icon name which decide how annotation to display. More...
 
- Public Member Functions inherited from Markup
 addMarkedState (stateName)
 Add marked state with specific name. More...
 
 addReply (content)
 Add a new reply to the end of reply list. More...
 
 addReviewState (stateName)
 Add review state with specific name. More...
 
 exportToJSON ()
 Export annotation to a json object. Override Annot::exportToJSON. More...
 
 getCreateDateTime ()
 Get creation date time. More...
 
 getGroupElements ()
 Get the group annotations which own current annotation. More...
 
 getGroupHeader ()
 Get the header annotation (as primary annotation) of the group that current markup annotation belongs to. 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. More...
 
 getMarkedStateCount ()
 Get the count of state annotations. More...
 
 getMarkedStates ()
 Get all state annotation. state model is marked. More...
 
 getOpacity ()
 Get opacity value.
This property has effect on markup annotation's appearance. More...
 
 getPopup ()
 Get annotation's popup. More...
 
 getReplies ()
 Get all replies. More...
 
 getReply (index)
 Get a reply annot by index. More...
 
 getReplyCount ()
 Count all replies. More...
 
 getReviewState (index)
 Get a state annotation by index. state model is review. More...
 
 getReviewStateCount ()
 Get the count of state annotations.
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. More...
 
 getSubject ()
 Get subject string. More...
 
 getTitle ()
 Get title string. More...
 
 isGrouped ()
 Check whether current markup annotation is in a group or not. More...
 
 isGroupHeader ()
 Check whether current markup annotation is a group header annotation. More...
 
 removeAllStateAnnots ()
 Remove all sate from this markup annotation. More...
 
 setContent (content)
 Set markup annotation's contents. More...
 
 setCreateDateTime (date)
 Set creation date time. More...
 
 setIntent (intent)
 Set annotaions's intent. More...
 
 setOpacity (opacity)
 Set opacity value. More...
 
 setSubject (subject)
 Set subject string. More...
 
 setTitle (title)
 Set title string. More...
 
- Public Member Functions inherited from Annot
 exportToJSON ()
 Export annotation to a json object. More...
 
 getBorderColor ()
 Get annotation's border color. More...
 
 getBorderInfo ()
 Get annotation's border information. More...
 
 getContent ()
 Get annotation's contents. More...
 
 getFlags ()
 Get annotation's flag. More...
 
 getModifiedDateTime ()
 Get annotation's last modified date time. More...
 
 getPage ()
 Get annotation's page. More...
 
 getRect ()
 Get annotation's rect. More...
 
 getTitle ()
 Get annotation's title. More...
 
 getType ()
 Get annotation's type. More...
 
 getUniqueID ()
 Get annotation's unique ID. More...
 
 isEmpty ()
 Check annotation is empty or not. More...
 
 isMarkup ()
 Check if current annotation is a markup annotation. More...
 
 setBorderColor (borderColor)
 Set annotation's border color. More...
 
 setBorderInfo (borderInfo)
 Set annotation's border information. More...
 
 setContent (content)
 Set annotation's contents. More...
 
 setFlags (flag)
 Set annotation's flag. More...
 
 setModifiedDateTime (date)
 Set annotation's last modified date time. More...
 

Detailed Description

FileAttachment annot object.

Member Function Documentation

◆ setIconName()

FileAttachment::setIconName (   iconName)
inline

Set annotation's icon name which decide how annotation to display.

Parameters
iconName{string} - Icon name string, one of "Graph", "PushPin", "Paperclip", "Tag".
Returns
{Promise.<T>|*} - A boolean value indecated whether success.

Foxit Software Corporation Logo
@2019 Foxit Software Incorporated. All rights reserved.