Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Pdf_FileParserDataSource $dataSource) | |
Object constructor. | |
![]() | |
screen () | |
Performs a cursory check to verify that the binary file is in the expected format. | |
parse () | |
Reads and parses the complete binary file. | |
__construct (Zend_Pdf_FileParserDataSource $dataSource) | |
Object constructor. | |
__destruct () | |
Object destructor. | |
isScreened () | |
Returns true if the file has passed a cursory validation check. | |
isParsed () | |
Returns true if the file has been successfully parsed. | |
getDataSource () | |
Returns the data source object representing the file being parsed. | |
moveToOffset ($offset) | |
Convenience wrapper for the data source object's moveToOffset() method. | |
getOffset () | |
getSize () | |
readBytes ($byteCount) | |
Convenience wrapper for the data source object's readBytes() method. | |
skipBytes ($byteCount) | |
Convenience wrapper for the data source object's skipBytes() method. | |
readInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) | |
Reads the signed integer value from the binary file at the current byte offset. | |
readUInt ($size, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) | |
Reads the unsigned integer value from the binary file at the current byte offset. | |
isBitSet ($bit, $bitField) | |
Returns true if the specified bit is set in the integer bitfield. | |
readFixed ($mantissaBits, $fractionBits, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN) | |
Reads the signed fixed-point number from the binary file at the current byte offset. | |
readStringUTF16 ($byteCount, $byteOrder=Zend_Pdf_FileParser::BYTE_ORDER_BIG_ENDIAN, $characterSet= '') | |
Reads the Unicode UTF-16-encoded string from the binary file at the current byte offset. | |
readStringMacRoman ($byteCount, $characterSet= '') | |
Reads the Mac Roman-encoded string from the binary file at the current byte offset. | |
readStringPascal ($characterSet= '', $lengthBytes=1) | |
Reads the Pascal string from the binary file at the current byte offset. | |
Protected Attributes | |
$imageType | |
![]() | |
$_isScreened = false | |
$_isParsed = false | |
$_dataSource = null | |
Additional Inherited Members | |
![]() | |
const | BYTE_ORDER_LITTLE_ENDIAN = 0 |
Little-endian byte order (0x04 0x03 0x02 0x01). | |
const | BYTE_ORDER_BIG_ENDIAN = 1 |
Big-endian byte order (0x01 0x02 0x03 0x04). | |
__construct | ( | Zend_Pdf_FileParserDataSource | $dataSource | ) |
Object constructor.
Validates the data source and enables debug logging if so configured.
Zend_Pdf_FileParserDataSource | $dataSource |
Zend_Pdf_Exception |
|
protected |