Packageorg.purepdf.pdf
Classpublic class PdfDictionary
InheritancePdfDictionary Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash
Implements it.sephiroth.utils.IObject
Subclasses PdfAcroForm, PdfAction, PdfAnnotation, PdfBorderDictionary, PdfCatalog, PdfFileSpecification, PdfGState, PdfInfo, PdfLayer, PdfLayerMembership, PdfMediaClipData, PdfOCProperties, PdfOutline, PdfPage, PdfRendition, PdfResources, PdfShadingPattern, PdfStream, PdfStructureElement, PdfStructureTreeRoot, PdfTrailer, PdfTransparencyGroup



Public Properties
 PropertyDefined By
  size : int
[read-only]
PdfDictionary
Protected Properties
 PropertyDefined By
 Inheritedbytes : Bytes
PdfObject
  dictionaryType : PdfName
PdfDictionary
  hashMap : HashMap
PdfDictionary
 InheritedindRef : PRIndirectReference
PdfObject
 Inheritedtype : int
PdfObject
Public Methods
 MethodDefined By
  
PdfDictionary($type:PdfName = null)
PdfDictionary
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
  
contains(key:PdfName):Boolean
PdfDictionary
 Inherited
dispose():void
PdfObject
  
Returns a PdfObject as a PdfArray, resolving indirect references.
PdfDictionary
  
PdfDictionary
  
Returns a PdfObject as a PdfNumber, resolving indirect references.
PdfDictionary
 Inherited
PdfObject
  
Returns the PdfObject associated to the specified key, resolving a possible indirect reference to a direct object.
PdfDictionary
 Inherited
PdfObject
  
getKeys():KeySet
PdfDictionary
 Inherited
getType():int
PdfObject
  
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
  
merge(other:PdfDictionary):void
PdfDictionary
  
PdfDictionary
  
put(key:PdfName, object:PdfObject):void
PdfDictionary
  
putAll(other:PdfDictionary):void
PdfDictionary
  
putEx(key:PdfName, value:PdfObject):void
Associates the specified PdfObject as value to the specified PdfName as key in this map.
PdfDictionary
  
remove(key:PdfName):void
PdfDictionary
 Inherited
Set the indirect reference
PdfObject
  
toPdf(writer:PdfWriter, os:IOutputStream):void
[override]
PdfDictionary
  
toString():String
[override]
PdfDictionary
Protected Methods
 MethodDefined By
 Inherited
setContent(content:String):void
PdfObject
Public Constants
 ConstantDefined By
 InheritedARRAY : int = 5
[static]
PdfObject
 InheritedBOOLEAN : int = 1
[static]
PdfObject
  CATALOG : PdfName
[static]
PdfDictionary
 InheritedDICTIONARY : int = 6
[static]
PdfObject
 InheritedINDIRECT : int = 10
[static]
PdfObject
 InheritedNAME : int = 4
[static]
PdfObject
 InheritedNOTHING : String
[static]
PdfObject
 InheritedNULL : int = 8
[static]
PdfObject
 InheritedNUMBER : int = 2
[static]
PdfObject
  OUTLINES : PdfName
[static]
PdfDictionary
  PAGE : 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
dictionaryTypeproperty
protected var dictionaryType:PdfName

hashMapproperty 
protected var hashMap:HashMap

sizeproperty 
size:int  [read-only]


Implementation
    public function get size():int
Constructor Detail
PdfDictionary()Constructor
public function PdfDictionary($type:PdfName = null)



Parameters
$type:PdfName (default = null)
Method Detail
contains()method
public function contains(key:PdfName):Boolean

Parameters

key:PdfName

Returns
Boolean
getAsArray()method 
public function getAsArray(key:PdfName):PdfArray

Returns a PdfObject as a PdfArray, resolving indirect references. The object associated with the PdfName given is retrieved and resolved to a direct object. If it is a PdfArray, it is cast down and returned as such. Otherwise null is returned.

Parameters

key:PdfName — A PdfName

Returns
PdfArray — the associated PdfArray object, or null
getAsDict()method 
public function getAsDict(key:PdfName):PdfDictionary

Parameters

key:PdfName

Returns
PdfDictionary
getAsNumber()method 
public function getAsNumber(key:PdfName):PdfNumber

Returns a PdfObject as a PdfNumber, resolving indirect references. The object associated with the PdfName given is retrieved and resolved to a direct object. If it is a PdfNumber, it is cast down and returned as such. Otherwise null is returned.

Parameters

key:PdfName — a PdfName

Returns
PdfNumber — the associated PdfNumber object, or null
getDirectObject()method 
public function getDirectObject(key:PdfName):PdfObject

Returns the PdfObject associated to the specified , resolving a possible indirect reference to a direct object. This method will never return a PdfIndirectReference object.

Parameters

key:PdfName

Returns
PdfObject
getKeys()method 
public function getKeys():KeySet

Returns
KeySet
getValue()method 
public function getValue(key:PdfName):PdfObject

Parameters

key:PdfName

Returns
PdfObject
merge()method 
public function merge(other:PdfDictionary):void

Parameters

other:PdfDictionary

mergeDifferent()method 
public function mergeDifferent(other:PdfDictionary):void

Parameters

other:PdfDictionary

put()method 
public function put(key:PdfName, object:PdfObject):void

Parameters

key:PdfName
 
object:PdfObject

putAll()method 
public function putAll(other:PdfDictionary):void

Parameters

other:PdfDictionary

putEx()method 
public function putEx(key:PdfName, value:PdfObject):void

Associates the specified PdfObject as value to the specified PdfName as key in this map. If the value is a PdfNull, it is treated just as any other PdfObject. If the value is null however nothing is done.

Parameters

key:PdfName — a PdfName
 
value:PdfObject — the PdfObject to be associated to the key

remove()method 
public function remove(key:PdfName):void

Parameters

key:PdfName

toPdf()method 
override public function toPdf(writer:PdfWriter, os:IOutputStream):void

Parameters

writer:PdfWriter
 
os:IOutputStream

toString()method 
override public function toString():String

Returns
String
Constant Detail
CATALOGConstant
public static const CATALOG:PdfName

OUTLINESConstant 
public static const OUTLINES:PdfName

PAGEConstant 
public static const PAGE:PdfName