protected var _decrypt:PdfEncryption
protected var _pdfVersion:int
appendable:Boolean
[read-only]
Implementation public function get appendable():Boolean
public var catalog:PdfDictionary
public var currentStep:int = 0
decrypt:PdfEncryption
[read-only]
Implementation public function get decrypt():PdfEncryption
protected var encrypted:Boolean = false
public var hybridXref:Boolean
protected var lastXref:int
public var lastXrefPartial:int = -1
public var newXrefType:Boolean
numberOfPages:int
[read-only]
Gets the number of pages in the document.
Implementation public function get numberOfPages():int
protected var objStmMark:HashMap
protected var objStmToOffset:HashMap
protected var pageRefs:PageRefs
public var partial:Boolean
pdfVersion:int
[read-only]
Implementation public function get pdfVersion():int
protected var rebuilt:Boolean
public var rootPages:PdfDictionary
protected var sharedStreams:Boolean = true
protected var strings:Vector.<PdfString>
public var tokens:PRTokeniser
public var totalSteps:int = 3
protected var trailer:PdfDictionary
public var xref:Vector.<int>
public function PdfReader(input:ByteArray)
Parameters public static function _FlateDecode(input:Bytes, strict:Boolean):Bytes
A helper to FlateDecode.
Parameters
| input:Bytes — the input data
|
|
| strict:Boolean — true to read a correct stream.
false to try to read a corrupted stream
|
Returns public function _getPageRotation(page:PdfDictionary):int
Parameters
Returns public function _getPageSize(page:PdfDictionary):RectangleElement
Gets the page from a page dictionary
Parameters
Returns public function _getPageSizeWithRotation(page:PdfDictionary):RectangleElement
Gets the rotated page from a page dictionary.
Parameters
Returns public static function ASCII85Decode(input:Bytes):Bytes
Decodes a stream that has the ASCII85Decode filter.
Parameters
| input:Bytes — the input data
|
ReturnsThrows public static function ASCIIHexDecode(input:Bytes):Bytes
Decodes a stream that has the ASCIIHexDecode filter.
Parameters
| input:Bytes — the input data
|
ReturnsThrows public static function decodePredictor(input:Bytes, dicPar:PdfObject):Bytes
Parameters
Returns protected function eliminateSharedStreams():void
Eliminates shared streams if they exist.
public function ensureXrefSize(size:int):void
Parameters
public static function FlateDecode(input:Bytes):Bytes
Decodes a stream that has the FlateDecode filter.
Parameters
| input:Bytes — the input data
|
Returns public function getCatalog():PdfDictionary
Returns public function getFileLength():int
Getter for property fileLength.
Returns | int — Value of property fileLength.
|
public function getInfo():HashMap
Returns the content of the document information dictionary as a HashMap
of String.
Returns | HashMap — content of the document information dictionary
|
public static function getNormalizedRectangle(box:PdfArray):RectangleElement
Normalizes a RectangleElement so that llx and lly are smaller than urx and ury.
Parameters
Returns public function getNumberOfPages():int
Gets the number of pages in the document.
Returns | int — the number of pages in the document
|
public function getPageN(pageNum:int):PdfDictionary
Gets the dictionary that represents a page.
Parameters
| pageNum:int — the page number. 1 is the first
|
Returns public function getPageOrigRef(pageNum:int):PRIndirectReference
Gets the page reference to this page.
Parameters
| pageNum:int — the page number. 1 is the first
|
Returns public function getPageRotation(index:int):int
Gets the page rotation. This value can be 0, 90, 180 or 270.
Parameters
| index:int — the page number. The first page is 1
|
Returns public function getPageSize(index:int):RectangleElement
Gets the page size without taking rotation into account. This
is the value of the /MediaBox key.
Parameters
| index:int — the page number. The first page is 1
|
Returns public function getPageSizeWithRotation(index:int):RectangleElement
Gets the page size, taking rotation into account. This
is a RectangleElement with the value of the /MediaBox and the /Rotate key.
Parameters
| index:int — the page number. The first page is 1
|
Returns public function getPdfObject(idx:int):PdfObject
Parameters
Returns public static function getPdfObject(obj:PdfObject):PdfObject
Parameters
Returns public function getPdfObjectRelease(idx:int):PdfObject
Parameters
Returns public static function getPdfObjectRelease(obj:PdfObject):PdfObject
Parameters
Returns public static function getPdfObjects(obj:PdfObject, parent:PdfObject):PdfObject
Parameters
Returns public function getSafeFile():RandomAccessFileOrArray
Gets a new file instance of the original PDF
document.
Returns public static function getStreamBytes(stream:PRStream, file:RandomAccessFileOrArray):Bytes
Get the content from a stream applying the required filters.
Parameters
Returns | Bytes — the stream content
|
public static function getStreamBytes2(stream:PRStream):Bytes
Get the content from a stream applying the required filters.
Parameters
Returns | Bytes — the stream content
|
public static function getStreamBytesRaw(stream:PRStream, file:RandomAccessFileOrArray):Bytes
Get the content from a stream as it is without applying any filter.
Parameters
Returns | Bytes — the stream content
|
public static function getStreamBytesRaw2(stream:PRStream):Bytes
Get the content from a stream as it is without applying any filter.
Parameters
Returns | Bytes — the stream content
|
public function getTokens():PRTokeniser
Returns public function getxref():Vector.<int>
Returns public function getxrefobj():Vector.<PdfObject>
Returns public function getXrefSize():int
Gets the number of xref objects.
Returns | int — the number of xref objects
|
public function isEncrypted():Boolean
Returns true if the PDF is encrypted.
Returns | Boolean — true if the PDF is encrypted
|
public function isRebuilt():Boolean
Checks if the document had errors and was rebuilt.
Returns | Boolean — true if rebuilt.
|
protected function readArray():PdfArray
Returns protected function readDictionary():PdfDictionary
Returns protected function readDocObj():void
protected function readObjStm(stream:PRStream, map:HashMap):void
Parameters
protected function readOneObjStm(stream:PRStream, idx:int):PdfObject
Parameters
Returns protected function readPages():void
public function readPdf(removeUnused:Boolean = false):void
Start parsing the current pdf document.
If the parameter removeUnused
is set to
true then all the unused nodes will be removed one the
parsing process has ended.
Parameters
| removeUnused:Boolean (default = false )
|
public function readPRObject():PdfObject
Returns protected function readSingleObject(k:int):PdfObject
Parameters
Returns protected function readXref():void
public function readXRefStream(ptr:int):Boolean
Parameters
Returns protected function rebuildXref():void
public function releaseLastXrefPartial():void
public static function releaseLastXrefPartial(obj:PdfObject):void
Parameters
public function releasePage(pageNum:int):void
Parameters
protected function removeUnusedNode(obj:PdfObject, hits:Vector.<Boolean>):void
Parameters
public function removeUnusedObjects():int
Removes all the unreachable objects.
Returns | int — the number of indirect objects removed
|
public function resetLastXrefPartial():void
public function setObjGen(value:int):void
Parameters
public function setObjNum(value:int):void
Parameters
public static const pageInhCandidates:Vector.<PdfName>
public static const TIMER_STEP:int = 300
Thu May 27 2010, 07:51 AM +02:00