Packageorg.purepdf.pdf
Classpublic class PdfAnnotation
InheritancePdfAnnotation Inheritance PdfDictionary Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash
Subclasses PdfFormField



Public Properties
 PropertyDefined By
  action : PdfAction
[write-only]
PdfAnnotation
  _annotation : Boolean = true
PdfAnnotation
  annotation : Boolean
PdfAnnotation
  appearanceState : String
[write-only]
PdfAnnotation
  borderStyle : PdfBorderDictionary
[write-only]
PdfAnnotation
  color : RGBColor
[write-only]
PdfAnnotation
  defaultAppearanceString : PdfContentByte
[write-only]
PdfAnnotation
  flags : int
[write-only]
PdfAnnotation
  form : Boolean
PdfAnnotation
  indirectReference : PdfIndirectReference
[read-only] Returns an indirect reference to the annotation
PdfAnnotation
  isAnnotation : Boolean
[read-only]
PdfAnnotation
  isForm : Boolean
[read-only]
PdfAnnotation
  mkBackgroundColor : RGBColor
[write-only]
PdfAnnotation
  mkBorderColor : RGBColor
[write-only]
PdfAnnotation
  mkRotation : int
[write-only]
PdfAnnotation
  placeInPage : int
[read-only]
PdfAnnotation
  popup : PdfAnnotation
[write-only]
PdfAnnotation
 Inheritedsize : int
[read-only]
PdfDictionary
  _templates : HashMap
PdfAnnotation
  templates : HashMap
PdfAnnotation
  writer : PdfWriter
PdfAnnotation
Protected Properties
 PropertyDefined By
 Inheritedbytes : Bytes
PdfObject
 InheriteddictionaryType : PdfName
PdfDictionary
  _form : Boolean = false
PdfAnnotation
 InheritedhashMap : HashMap
PdfDictionary
 InheritedindRef : PRIndirectReference
PdfObject
  mk : PdfDictionary
[read-only]
PdfAnnotation
  _placeInPage : int = -1
PdfAnnotation
  reference : PdfIndirectReference
PdfAnnotation
 Inheritedtype : int
PdfObject
  used : Boolean = false
PdfAnnotation
  _writer : PdfWriter
PdfAnnotation
Public Methods
 MethodDefined By
  
PdfAnnotation($writer:PdfWriter, rect:RectangleElement = null, action:PdfAction = null)
PdfAnnotation
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
 Inherited
contains(key:PdfName):Boolean
PdfDictionary
  
[static]
PdfAnnotation
  
createFileAttachment(writer:PdfWriter, rect:RectangleElement, contents:String, fileStore:ByteArray, fileDisplay:String):PdfAnnotation
[static] Creates a file attachment annotation.
PdfAnnotation
  
createFreeText(writer:PdfWriter, rect:RectangleElement, contents:String, defaultAppearance:PdfContentByte):PdfAnnotation
[static] Add some free text to the document.
PdfAnnotation
  
createLine(writer:PdfWriter, rect:RectangleElement, contents:String, x1:Number, y1:Number, x2:Number, y2:Number):PdfAnnotation
[static] Adds a line to the document.
PdfAnnotation
  
[static] Creates an Annotation with an Action.
PdfAnnotation
  
createLink2(writer:PdfWriter, rect:RectangleElement, highlight:PdfName, namedDestination:String):PdfAnnotation
[static] Creates an Annotation with an local destination.
PdfAnnotation
  
[static] Creates an Annotation with a PdfDestination.
PdfAnnotation
  
createPopup(writer:PdfWriter, rect:RectangleElement, contents:String, open:Boolean):PdfAnnotation
[static] Adds a popup to your document.
PdfAnnotation
  
createScreen(writer:PdfWriter, rect:RectangleElement, clipTitle:String, fs:PdfFileSpecification, mimeType:String, playOnDisplay:Boolean):PdfAnnotation
[static] Creates a screen PdfAnnotation
PdfAnnotation
  
createSquareCircle(writer:PdfWriter, rect:RectangleElement, contents:String, square:Boolean):PdfAnnotation
[static] Adds a circle or a square that shows a tooltip when you pass over it.
PdfAnnotation
  
createText(writer:PdfWriter, rect:RectangleElement, title:String, contents:String, opened:Boolean, icon:String):PdfAnnotation
[static]
PdfAnnotation
 Inherited
dispose():void
PdfObject
 Inherited
Returns a PdfObject as a PdfArray, resolving indirect references.
PdfDictionary
 Inherited
PdfDictionary
 Inherited
Returns a PdfObject as a PdfNumber, resolving indirect references.
PdfDictionary
 Inherited
PdfObject
 Inherited
Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object.
PdfDictionary
 Inherited
PdfObject
 Inherited
getKeys():KeySet
PdfDictionary
  
[static]
PdfAnnotation
 Inherited
getType():int
PdfObject
  
getUsed():Boolean
PdfAnnotation
 Inherited
PdfDictionary
 Inherited
isArray():Boolean
PdfObject
 Inherited
isBoolean():Boolean
PdfObject
 Inherited
isDictionary():Boolean
PdfObject
 Inherited
isIndirect():Boolean
PdfObject
 Inherited
isName():Boolean
PdfObject
 Inherited
isNull():Boolean
PdfObject
 Inherited
isNumber():Boolean
PdfObject
 Inherited
isStream():Boolean
Checks if this PdfObject is of the type PdfStream
PdfObject
 Inherited
isString():Boolean
PdfObject
 Inherited
merge(other:PdfDictionary):void
PdfDictionary
 Inherited
PdfDictionary
 Inherited
put(key:PdfName, object:PdfObject):void
PdfDictionary
 Inherited
putAll(other:PdfDictionary):void
PdfDictionary
 Inherited
putEx(key:PdfName, value:PdfObject):void
Associates the specified PdfObject as value to the specified PdfName as key in this map.
PdfDictionary
 Inherited
remove(key:PdfName):void
PdfDictionary
  
PdfAnnotation
  
setAppearance(ap:PdfName, template:PdfTemplate):void
PdfAnnotation
  
setAppearanceState(ap:PdfName, state:String, template:PdfTemplate):void
PdfAnnotation
 Inherited
Set the indirect reference
PdfObject
  
setPage():void
PdfAnnotation
  
setUsed():void
PdfAnnotation
 Inherited
toPdf(writer:PdfWriter, os:IOutputStream):void
[override]
PdfDictionary
 Inherited
toString():String
[override]
PdfDictionary
Protected Methods
 MethodDefined By
  
[static] Creates a link.
PdfAnnotation
 Inherited
setContent(content:String):void
PdfObject
Public Constants
 ConstantDefined By
  AA_BLUR : PdfName
[static]
PdfAnnotation
  AA_DOWN : PdfName
[static]
PdfAnnotation
  AA_ENTER : PdfName
[static]
PdfAnnotation
  AA_EXIT : PdfName
[static]
PdfAnnotation
  AA_FOCUS : PdfName
[static]
PdfAnnotation
  AA_JS_CHANGE : PdfName
[static]
PdfAnnotation
  AA_JS_FORMAT : PdfName
[static]
PdfAnnotation
  AA_JS_KEY : PdfName
[static]
PdfAnnotation
  AA_JS_OTHER_CHANGE : PdfName
[static]
PdfAnnotation
  AA_UP : PdfName
[static]
PdfAnnotation
  APPEARANCE_DOWN : PdfName
[static]
PdfAnnotation
  APPEARANCE_NORMAL : PdfName
[static]
PdfAnnotation
  APPEARANCE_ROLLOVER : PdfName
[static]
PdfAnnotation
 InheritedARRAY : int = 5
[static]
PdfObject
 InheritedBOOLEAN : int = 1
[static]
PdfObject
 InheritedCATALOG : PdfName
[static]
PdfDictionary
 InheritedDICTIONARY : int = 6
[static]
PdfObject
  FLAGS_HIDDEN : int = 2
[static]
PdfAnnotation
  FLAGS_INVISIBLE : int = 1
[static]
PdfAnnotation
  FLAGS_LOCKED : int = 128
[static]
PdfAnnotation
  FLAGS_NOROTATE : int = 16
[static]
PdfAnnotation
  FLAGS_NOVIEW : int = 32
[static]
PdfAnnotation
  FLAGS_NOZOOM : int = 8
[static]
PdfAnnotation
  FLAGS_PRINT : int = 4
[static]
PdfAnnotation
  FLAGS_READONLY : int = 64
[static]
PdfAnnotation
  FLAGS_TOGGLENOVIEW : int = 256
[static]
PdfAnnotation
  HIGHLIGHT_INVERT : PdfName
[static]
PdfAnnotation
  HIGHLIGHT_NONE : PdfName
[static]
PdfAnnotation
  HIGHLIGHT_OUTLINE : PdfName
[static]
PdfAnnotation
  HIGHLIGHT_PUSH : PdfName
[static]
PdfAnnotation
  HIGHLIGHT_TOGGLE : PdfName
[static]
PdfAnnotation
 InheritedINDIRECT : int = 10
[static]
PdfObject
  MARKUP_HIGHLIGHT : int = 0
[static]
PdfAnnotation
  MARKUP_SQUIGGLY : int = 3
[static]
PdfAnnotation
  MARKUP_STRIKEOUT : int = 2
[static]
PdfAnnotation
  MARKUP_UNDERLINE : int = 1
[static]
PdfAnnotation
 InheritedNAME : int = 4
[static]
PdfObject
 InheritedNOTHING : String
[static]
PdfObject
 InheritedNULL : int = 8
[static]
PdfObject
 InheritedNUMBER : int = 2
[static]
PdfObject
 InheritedOUTLINES : PdfName
[static]
PdfDictionary
 InheritedPAGE : PdfName
[static]
PdfDictionary
 InheritedSTREAM : int = 7
[static]
PdfObject
 InheritedSTRING : int = 3
[static]
PdfObject
 InheritedTEXT_PDFDOCENCODING : String = PDF
[static]
PdfObject
 InheritedTEXT_UNICODE : String = UnicodeBig
[static]
PdfObject
Property Detail
_annotationproperty
public var _annotation:Boolean = true

_formproperty 
protected var _form:Boolean = false

_placeInPageproperty 
protected var _placeInPage:int = -1

_templatesproperty 
public var _templates:HashMap

_writerproperty 
protected var _writer:PdfWriter

actionproperty 
action:PdfAction  [write-only]


Implementation
    public function set action(value:PdfAction):void
annotationproperty 
annotation:Boolean


Implementation
    public function get annotation():Boolean
    public function set annotation(value:Boolean):void
appearanceStateproperty 
appearanceState:String  [write-only]


Implementation
    public function set appearanceState(value:String):void
borderStyleproperty 
borderStyle:PdfBorderDictionary  [write-only]


Implementation
    public function set borderStyle(value:PdfBorderDictionary):void
colorproperty 
color:RGBColor  [write-only]


Implementation
    public function set color(value:RGBColor):void
defaultAppearanceStringproperty 
defaultAppearanceString:PdfContentByte  [write-only]


Implementation
    public function set defaultAppearanceString(value:PdfContentByte):void
flagsproperty 
flags:int  [write-only]


Implementation
    public function set flags(value:int):void
formproperty 
form:Boolean


Implementation
    public function get form():Boolean
    public function set form(value:Boolean):void
indirectReferenceproperty 
indirectReference:PdfIndirectReference  [read-only]

Returns an indirect reference to the annotation


Implementation
    public function get indirectReference():PdfIndirectReference
isAnnotationproperty 
isAnnotation:Boolean  [read-only]


Implementation
    public function get isAnnotation():Boolean
isFormproperty 
isForm:Boolean  [read-only]


Implementation
    public function get isForm():Boolean
mkproperty 
mk:PdfDictionary  [read-only]


Implementation
    protected function get mk():PdfDictionary
mkBackgroundColorproperty 
mkBackgroundColor:RGBColor  [write-only]


Implementation
    public function set mkBackgroundColor(value:RGBColor):void
mkBorderColorproperty 
mkBorderColor:RGBColor  [write-only]


Implementation
    public function set mkBorderColor(value:RGBColor):void
mkRotationproperty 
mkRotation:int  [write-only]


Implementation
    public function set mkRotation(value:int):void
placeInPageproperty 
placeInPage:int  [read-only]


Implementation
    public function get placeInPage():int
popupproperty 
popup:PdfAnnotation  [write-only]


Implementation
    public function set popup(value:PdfAnnotation):void
referenceproperty 
protected var reference:PdfIndirectReference

templatesproperty 
templates:HashMap


Implementation
    public function get templates():HashMap
    public function set templates(value:HashMap):void
usedproperty 
protected var used:Boolean = false

writerproperty 
writer:PdfWriter


Implementation
    public function get writer():PdfWriter
    public function set writer(value:PdfWriter):void
Constructor Detail
PdfAnnotation()Constructor
public function PdfAnnotation($writer:PdfWriter, rect:RectangleElement = null, action:PdfAction = null)



Parameters
$writer:PdfWriter
 
rect:RectangleElement (default = null)
 
action:PdfAction (default = null)
Method Detail
_createLink()method
protected static function _createLink(writer:PdfWriter, rect:RectangleElement, highlight:PdfName):PdfAnnotation

Creates a link.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
highlight:PdfName

Returns
PdfAnnotation — A PdfAnnotation
createAction()method 
public static function createAction(writer:PdfWriter, rect:RectangleElement, action:PdfAction):PdfAnnotation

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
action:PdfAction

Returns
PdfAnnotation
createFileAttachment()method 
public static function createFileAttachment(writer:PdfWriter, rect:RectangleElement, contents:String, fileStore:ByteArray, fileDisplay:String):PdfAnnotation

Creates a file attachment annotation.

Parameters

writer:PdfWriter
 
rect:RectangleElement — the dimensions in the page of the annotation
 
contents:String — the file description
 
fileStore:ByteArrayByteArray of the file contents
 
fileDisplay:String — the actual file name stored in the pdf

Returns
PdfAnnotation — the annotation
createFreeText()method 
public static function createFreeText(writer:PdfWriter, rect:RectangleElement, contents:String, defaultAppearance:PdfContentByte):PdfAnnotation

Add some free text to the document.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
contents:String
 
defaultAppearance:PdfContentByte

Returns
PdfAnnotation — A PdfAnnotation
createLine()method 
public static function createLine(writer:PdfWriter, rect:RectangleElement, contents:String, x1:Number, y1:Number, x2:Number, y2:Number):PdfAnnotation

Adds a line to the document. Move over the line and a tooltip is shown.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
contents:String
 
x1:Number
 
y1:Number
 
x2:Number
 
y2:Number

Returns
PdfAnnotation — A PdfAnnotation
createLink()method 
public static function createLink(writer:PdfWriter, rect:RectangleElement, highlight:PdfName, action:PdfAction):PdfAnnotation

Creates an Annotation with an Action.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
highlight:PdfName
 
action:PdfAction

Returns
PdfAnnotation — A PdfAnnotation
createLink2()method 
public static function createLink2(writer:PdfWriter, rect:RectangleElement, highlight:PdfName, namedDestination:String):PdfAnnotation

Creates an Annotation with an local destination.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
highlight:PdfName
 
namedDestination:String

Returns
PdfAnnotation — A PdfAnnotation
createLink3()method 
public static function createLink3(writer:PdfWriter, rect:RectangleElement, highlight:PdfName, page:int, dest:PdfDestination):PdfAnnotation

Creates an Annotation with a PdfDestination.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
highlight:PdfName
 
page:int
 
dest:PdfDestination

Returns
PdfAnnotation — A PdfAnnotation
createPopup()method 
public static function createPopup(writer:PdfWriter, rect:RectangleElement, contents:String, open:Boolean):PdfAnnotation

Adds a popup to your document.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
contents:String
 
open:Boolean

Returns
PdfAnnotation — A PdfAnnotation
createScreen()method 
public static function createScreen(writer:PdfWriter, rect:RectangleElement, clipTitle:String, fs:PdfFileSpecification, mimeType:String, playOnDisplay:Boolean):PdfAnnotation

Creates a screen PdfAnnotation

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
clipTitle:String
 
fs:PdfFileSpecification
 
mimeType:String
 
playOnDisplay:Boolean

Returns
PdfAnnotation — a screen PdfAnnotation

Throws
IOError
createSquareCircle()method 
public static function createSquareCircle(writer:PdfWriter, rect:RectangleElement, contents:String, square:Boolean):PdfAnnotation

Adds a circle or a square that shows a tooltip when you pass over it.

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
contents:String — The tooltip
 
square:Boolean — true if you want a square, false if you want a circle

Returns
PdfAnnotation — A PdfAnnotation
createText()method 
public static function createText(writer:PdfWriter, rect:RectangleElement, title:String, contents:String, opened:Boolean, icon:String):PdfAnnotation

Parameters

writer:PdfWriter
 
rect:RectangleElement
 
title:String
 
contents:String
 
opened:Boolean
 
icon:String

Returns
PdfAnnotation
getMKColor()method 
public static function getMKColor(color:RGBColor):PdfArray

Parameters

color:RGBColor

Returns
PdfArray
getUsed()method 
public function getUsed():Boolean

Returns
Boolean
setAdditionalActions()method 
public function setAdditionalActions(key:PdfName, action:PdfAction):void

Parameters

key:PdfName
 
action:PdfAction

setAppearance()method 
public function setAppearance(ap:PdfName, template:PdfTemplate):void

Parameters

ap:PdfName
 
template:PdfTemplate

setAppearanceState()method 
public function setAppearanceState(ap:PdfName, state:String, template:PdfTemplate):void

Parameters

ap:PdfName
 
state:String
 
template:PdfTemplate

setPage()method 
public function setPage():void

setUsed()method 
public function setUsed():void

Constant Detail
AA_BLURConstant
public static const AA_BLUR:PdfName

AA_DOWNConstant 
public static const AA_DOWN:PdfName

AA_ENTERConstant 
public static const AA_ENTER:PdfName

AA_EXITConstant 
public static const AA_EXIT:PdfName

AA_FOCUSConstant 
public static const AA_FOCUS:PdfName

AA_JS_CHANGEConstant 
public static const AA_JS_CHANGE:PdfName

AA_JS_FORMATConstant 
public static const AA_JS_FORMAT:PdfName

AA_JS_KEYConstant 
public static const AA_JS_KEY:PdfName

AA_JS_OTHER_CHANGEConstant 
public static const AA_JS_OTHER_CHANGE:PdfName

AA_UPConstant 
public static const AA_UP:PdfName

APPEARANCE_DOWNConstant 
public static const APPEARANCE_DOWN:PdfName

APPEARANCE_NORMALConstant 
public static const APPEARANCE_NORMAL:PdfName

APPEARANCE_ROLLOVERConstant 
public static const APPEARANCE_ROLLOVER:PdfName

FLAGS_HIDDENConstant 
public static const FLAGS_HIDDEN:int = 2

FLAGS_INVISIBLEConstant 
public static const FLAGS_INVISIBLE:int = 1

FLAGS_LOCKEDConstant 
public static const FLAGS_LOCKED:int = 128

FLAGS_NOROTATEConstant 
public static const FLAGS_NOROTATE:int = 16

FLAGS_NOVIEWConstant 
public static const FLAGS_NOVIEW:int = 32

FLAGS_NOZOOMConstant 
public static const FLAGS_NOZOOM:int = 8

FLAGS_PRINTConstant 
public static const FLAGS_PRINT:int = 4

FLAGS_READONLYConstant 
public static const FLAGS_READONLY:int = 64

FLAGS_TOGGLENOVIEWConstant 
public static const FLAGS_TOGGLENOVIEW:int = 256

HIGHLIGHT_INVERTConstant 
public static const HIGHLIGHT_INVERT:PdfName

HIGHLIGHT_NONEConstant 
public static const HIGHLIGHT_NONE:PdfName

HIGHLIGHT_OUTLINEConstant 
public static const HIGHLIGHT_OUTLINE:PdfName

HIGHLIGHT_PUSHConstant 
public static const HIGHLIGHT_PUSH:PdfName

HIGHLIGHT_TOGGLEConstant 
public static const HIGHLIGHT_TOGGLE:PdfName

MARKUP_HIGHLIGHTConstant 
public static const MARKUP_HIGHLIGHT:int = 0

MARKUP_SQUIGGLYConstant 
public static const MARKUP_SQUIGGLY:int = 3

MARKUP_STRIKEOUTConstant 
public static const MARKUP_STRIKEOUT:int = 2

MARKUP_UNDERLINEConstant 
public static const MARKUP_UNDERLINE:int = 1