Packageorg.purepdf.pdf
Classpublic class PdfArray
InheritancePdfArray Inheritance PdfObject Inheritance it.sephiroth.utils.ObjectHash
Subclasses PdfBorderArray, PdfColor, PdfDashPattern, PdfDestination, PdfRectangle



Public Properties
 PropertyDefined By
  isEmpty : Boolean
[read-only]
PdfArray
  size : int
[read-only]
PdfArray
Protected Properties
 PropertyDefined By
  arrayList : Vector.<PdfObject>
PdfArray
 Inheritedbytes : Bytes
PdfObject
 InheritedindRef : PRIndirectReference
PdfObject
 Inheritedtype : int
PdfObject
Public Methods
 MethodDefined By
  
PdfArray(object:Object = null)
Supported constructor types: PdfObject Vector.<Number> Vector.<int>
PdfArray
  
add(object:PdfObject):uint
Add a PdfObject to the end of the PdfArray
PdfArray
  
add2(values:Vector.<Number>):Boolean
Add an array of numbers to the end of the PdfArray
PdfArray
  
add3(values:Vector.<int>):Boolean
Add and array of integer to the end of the PdfArray
PdfArray
  
addFirst(object:PdfObject):void
PdfArray
 Inherited
canBeInObjStm():Boolean
Whether this object can be contained in an object stream.
PdfObject
  
contains(object:PdfObject):Boolean
Check if the PdfArray already contains a certain PdfObject
PdfArray
 Inherited
dispose():void
PdfObject
  
Deprecated: Deprecated
PdfArray
  
Returns a PdfObject as a PdfNumber, resolving indirect references.
PdfArray
 Inherited
PdfObject
  
Returns the PdfObject with the specified index, resolving a possible indirect reference to a direct object.
PdfArray
 Inherited
PdfObject
  
Returns the PdfObject at the specified index
PdfArray
 Inherited
getType():int
PdfObject
 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
  
listIterator():Iterator
Returns the list iterator for the array.
PdfArray
  
remove(idx:int):PdfObject
Remove the element at the specified position from the array.
PdfArray
 Inherited
Set the indirect reference
PdfObject
  
toPdf(writer:PdfWriter, os:IOutputStream):void
[override] Writes the PDF representation of this PdfArray as an array of byte to the specified OutputStream.
PdfArray
  
toString():String
[override]
PdfArray
Protected Methods
 MethodDefined By
 Inherited
setContent(content:String):void
PdfObject
Public Constants
 ConstantDefined By
 InheritedARRAY : int = 5
[static]
PdfObject
 InheritedBOOLEAN : int = 1
[static]
PdfObject
 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
 InheritedSTREAM : int = 7
[static]
PdfObject
 InheritedSTRING : int = 3
[static]
PdfObject
 InheritedTEXT_PDFDOCENCODING : String = PDF
[static]
PdfObject
 InheritedTEXT_UNICODE : String = UnicodeBig
[static]
PdfObject
Property Detail
arrayListproperty
protected var arrayList:Vector.<PdfObject>

isEmptyproperty 
isEmpty:Boolean  [read-only]


Implementation
    public function get isEmpty():Boolean
sizeproperty 
size:int  [read-only]


Implementation
    public function get size():int
Constructor Detail
PdfArray()Constructor
public function PdfArray(object:Object = null)

Supported constructor types:

Parameters
object:Object (default = null)
Method Detail
add()method
public function add(object:PdfObject):uint

Add a PdfObject to the end of the PdfArray

Parameters

object:PdfObject

Returns
uint
add2()method 
public function add2(values:Vector.<Number>):Boolean

Add an array of numbers to the end of the PdfArray

Parameters

values:Vector.<Number>

Returns
Boolean
add3()method 
public function add3(values:Vector.<int>):Boolean

Add and array of integer to the end of the PdfArray

Parameters

values:Vector.<int>

Returns
Boolean
addFirst()method 
public function addFirst(object:PdfObject):void

Parameters

object:PdfObject

contains()method 
public function contains(object:PdfObject):Boolean

Check if the PdfArray already contains a certain PdfObject

Parameters

object:PdfObject

Returns
Boolean
getArrayList()method 
public function getArrayList():Vector.<PdfObject>
Deprecated: Deprecated

Returns
Vector.<PdfObject>
getAsNumber()method 
public function getAsNumber(idx:int):PdfNumber

Returns a PdfObject as a PdfNumber, resolving indirect references. The object corresponding to the specified index 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

idx:int — The index of the PdfObject to be returned

Returns
PdfNumber — the corresponding PdfNumber object, or null
getDirectObject()method 
public function getDirectObject(idx:int):PdfObject

Returns the PdfObject with the specified index, resolving a possible indirect reference to a direct object. Thus this method will never return a PdfIndirectReference object.

Parameters

idx:int — The index of the PdfObject to be returned

Returns
PdfObject — A direct PdfObject or null
getPdfObject()method 
public function getPdfObject(idx:int):PdfObject

Returns the PdfObject at the specified index

Parameters

idx:int

Returns
PdfObject
listIterator()method 
public function listIterator():Iterator

Returns the list iterator for the array.

Returns
Iterator — a ListIterator
remove()method 
public function remove(idx:int):PdfObject

Remove the element at the specified position from the array. Shifts any subsequent elements to the left (subtracts one from their indices).

Parameters

idx:int — The index of the element to be removed.

Returns
PdfObject

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

Writes the PDF representation of this PdfArray as an array of byte to the specified OutputStream.

Parameters

writer:PdfWriter — for backwards compatibility
 
os:IOutputStream — the OutputStream to write the bytes to.

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

Returns
String