Package org.verapdf.gf.model.impl.pd
Class GFPDAnnot
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.pd.GFPDObject
org.verapdf.gf.model.impl.pd.GFPDAnnot
- Direct Known Subclasses:
GFPD3DAnnot,GFPDLinkAnnot,GFPDMarkupAnnot,GFPDMovieAnnot,GFPDPopupAnnot,GFPDPrinterMarkAnnot,GFPDRichMediaAnnot,GFPDScreenAnnot,GFPDSoundAnnot,GFPDTrapNetAnnot,GFPDWatermarkAnnot,GFPDWidgetAnnot
- Author:
- Maksim Bezrukov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected final PDResourcesHandlerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intFields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObjectFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsConstructorDescriptionGFPDAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page) GFPDAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page, String type) -
Method Summary
Modifier and TypeMethodDescriptionstatic GFPDAnnotcreateAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page) getAlt()the Alt entry of parent structure elementgetAP()ampersand-separated list of all keys in the annotation's appearance dictionary (AP key)getCA()annotation opacity (CA key)true if the annotation dictionary contains the A entrytrue if the annotation dictionary contains the AA entrytrue if the annotation dictionary contains the C entrytrue if the annotation dictionary contains the IC entrythe value of the /Contents entrygetF()annotation flagsgetFT()the value of the /FT entry (Field type), in case this is the widget annotation representing the form field, or null, if this entry is not presentthe height of the annotation computed as an absolute value of the difference of value 2 and value 4 of the Rect entrytrue if this annotation is contained in an Artifact structure element (directly or indirectly)true, if annotation rectangle is outside page CropBoxgetLang()getLinkedObjects(String link) the type of the normal appearance entry (/N key) in the annotation appearance dictionary (/AP key) or null, if the normal appearance is not presentprotected COSObjectindirect object number and generation number of the parent struct element of the annotationstruct parent element standard typestruct parent element typeannotation subtypegetwidth()the width of the annotation computed as an absolute value of the difference of value 1 and value 3 of the Rect entryprotected booleanMethods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID, getobjectKeyMethods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries, getobjectKey
-
Field Details
-
ANNOTATION_TYPE
- See Also:
-
DICT
- See Also:
-
STREAM
- See Also:
-
APPEARANCE
- See Also:
-
A
- See Also:
-
ADDITIONAL_ACTION
- See Also:
-
LANG
- See Also:
-
BM
- See Also:
-
TYPE_3D
- See Also:
-
CARET
- See Also:
-
CIRCLE
- See Also:
-
FILE_ATTACHMENT
- See Also:
-
FREE_TEXT
- See Also:
-
HIGHLIGHT
- See Also:
-
INK
- See Also:
-
LINE
- See Also:
-
LINK
- See Also:
-
MOVIE
- See Also:
-
POLYGON
- See Also:
-
POLYLINE
- See Also:
-
POPUP
- See Also:
-
PRINTER_MARK
- See Also:
-
REDACT
- See Also:
-
RICH_MEDIA
- See Also:
-
SCREEN
- See Also:
-
SOUND
- See Also:
-
STAMP
- See Also:
-
STRIKE_OUT
- See Also:
-
SQUARE
- See Also:
-
SQUIGGLY
- See Also:
-
TEXT
- See Also:
-
TRAP_NET
- See Also:
-
WATERMARK
- See Also:
-
UNDERLINE
- See Also:
-
WIDGET
- See Also:
-
X_AXIS
public static final int X_AXIS- See Also:
-
Y_AXIS
public static final int Y_AXIS- See Also:
-
resources
-
-
Constructor Details
-
GFPDAnnot
-
GFPDAnnot
-
-
Method Details
-
getSubtype
Description copied from interface:PDAnnotannotation subtype- Specified by:
getSubtypein interfacePDAnnot
-
getAP
Description copied from interface:PDAnnotampersand-separated list of all keys in the annotation's appearance dictionary (AP key) -
getF
Description copied from interface:PDAnnotannotation flags -
getCA
Description copied from interface:PDAnnotannotation opacity (CA key) -
getN_type
Description copied from interface:PDAnnotthe type of the normal appearance entry (/N key) in the annotation appearance dictionary (/AP key) or null, if the normal appearance is not present -
getcontainsC
Description copied from interface:PDAnnottrue if the annotation dictionary contains the C entry- Specified by:
getcontainsCin interfacePDAnnot
-
getcontainsIC
Description copied from interface:PDAnnottrue if the annotation dictionary contains the IC entry- Specified by:
getcontainsICin interfacePDAnnot
-
getFT
Description copied from interface:PDAnnotthe value of the /FT entry (Field type), in case this is the widget annotation representing the form field, or null, if this entry is not present -
getwidth
Description copied from interface:PDAnnotthe width of the annotation computed as an absolute value of the difference of value 1 and value 3 of the Rect entry -
getheight
Description copied from interface:PDAnnotthe height of the annotation computed as an absolute value of the difference of value 2 and value 4 of the Rect entry -
getcontainsAA
Description copied from interface:PDAnnottrue if the annotation dictionary contains the AA entry- Specified by:
getcontainsAAin interfacePDAnnot
-
getstructParentType
Description copied from interface:PDAnnotstruct parent element type- Specified by:
getstructParentTypein interfacePDAnnot
-
getstructParentStandardType
Description copied from interface:PDAnnotstruct parent element standard type- Specified by:
getstructParentStandardTypein interfacePDAnnot
-
getstructParentObjectKey
Description copied from interface:PDAnnotindirect object number and generation number of the parent struct element of the annotation- Specified by:
getstructParentObjectKeyin interfacePDAnnot
-
getParentDictionary
-
getLang
-
getContents
Description copied from interface:PDAnnotthe value of the /Contents entry- Specified by:
getContentsin interfacePDAnnot
-
getAlt
Description copied from interface:PDAnnotthe Alt entry of parent structure element -
getisOutsideCropBox
Description copied from interface:PDAnnottrue, if annotation rectangle is outside page CropBox- Specified by:
getisOutsideCropBoxin interfacePDAnnot
-
getcontainsA
Description copied from interface:PDAnnottrue if the annotation dictionary contains the A entry- Specified by:
getcontainsAin interfacePDAnnot
-
getisArtifact
Description copied from interface:PDAnnottrue if this annotation is contained in an Artifact structure element (directly or indirectly)- Specified by:
getisArtifactin interfacePDAnnot
-
getLinkedObjects
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
isSignature
protected boolean isSignature() -
createAnnot
public static GFPDAnnot createAnnot(PDAnnotation annot, PDResourcesHandler pageResources, PDPage page)
-