TIFF image

package Zend_Pdf
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Pdf_Resource_Image

 Methods

Clone page, extract it and dependent objects from the current document, so it can be used within other docs.

__clone() 
Inherited

Object constructor

__construct(string $imageFileName) 

If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.

inherited_from \Zend_Pdf_Resource_Image::__construct()

Parameters

$imageFileName

string

Exceptions

\Zend_Pdf_Exception

Object constructor.

__construct(\Zend_Pdf_Element|string $resource) 
Inherited

If resource is not a Zend_Pdf_Element object, then stream object with specified value is generated.

Parameters

$resource

\Zend_Pdf_Elementstring

Image height (defined in Zend_Pdf_Resource_Image_Interface)

getPixelHeight() 
inherited_from \Zend_Pdf_Resource_Image::getPixelHeight()

get the height in pixels of the image

getPixelHeight() : integer
Inherited

Returns

integer

Image width (defined in Zend_Pdf_Resource_Image_Interface)

getPixelWidth() 
inherited_from \Zend_Pdf_Resource_Image::getPixelWidth()

get the width in pixels of the image

getPixelWidth() : integer
Inherited

Returns

integer

Image properties (defined in Zend_Pdf_Resource_Image_Interface)

getProperties() 
inherited_from \Zend_Pdf_Resource_Image::getProperties()

gets an associative array of information about an image

getProperties() : array
Inherited

Returns

array

Byte unpacking function

unpackBytes(integer $type, string $bytes) 

Makes it possible to unpack bytes in one statement for enhanced logic readability.

Parameters

$type

integer

$bytes

string

Exceptions

\Zend_Pdf_Exception

 Properties

 

$_bitsPerSample

$_bitsPerSample 

Default

 

$_blackIsZero

$_blackIsZero 

Default

 

$_colorCode

$_colorCode 

Default

 

$_colorSpace

$_colorSpace 

Default

 

$_compression

$_compression 

Default

 

$_endianType

$_endianType 

Default

 

$_fileSize

$_fileSize 

Default

 

$_filter

$_filter 

Default

 

$_height

$_height 

Default

 

$_imageDataLength

$_imageDataLength 

Default

 

$_imageDataOffset

$_imageDataOffset 

Default

 

$_imageProperties

$_imageProperties 

Default

 

Each Pdf resource (fonts, images, .

$_objectFactory : \Zend_Pdf_ElementFactory_Interface

Default

..) interacts with a PDF itself. It creates appropriate PDF objects, structures and sometime embedded files. Resources are referenced in content streams by names, which are stored in a page resource dictionaries.

Thus, resources must be attached to the PDF.

Resource abstraction uses own PDF object factory to store all necessary information. At the render time internal object factory is appended to the global PDF file factory.

Resource abstraction also cashes information about rendered PDF files and doesn't duplicate resource description each time then Resource is rendered (referenced).

 

Main resource object

$_resource : \Zend_Pdf_Element_Object

Default

 

$_whiteIsZero

$_whiteIsZero 

Default

 

$_width

$_width 

Default

 Constants

 

TIFF_COMPRESSION_CCITT1D

TIFF_COMPRESSION_CCITT1D = 2 
 

TIFF_COMPRESSION_FLATE

TIFF_COMPRESSION_FLATE = 8 
 

TIFF_COMPRESSION_FLATE_OBSOLETE_CODE

TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946 
 

TIFF_COMPRESSION_GROUP_3_FAX

TIFF_COMPRESSION_GROUP_3_FAX = 3 
 

TIFF_COMPRESSION_GROUP_4_FAX

TIFF_COMPRESSION_GROUP_4_FAX = 4 
 

TIFF_COMPRESSION_JPEG

TIFF_COMPRESSION_JPEG = 6 
 

TIFF_COMPRESSION_LZW

TIFF_COMPRESSION_LZW = 5 
 

TIFF_COMPRESSION_PACKBITS

TIFF_COMPRESSION_PACKBITS = 32773 
 

TIFF_COMPRESSION_UNCOMPRESSED

TIFF_COMPRESSION_UNCOMPRESSED = 1 
 

TIFF_ENDIAN_BIG

TIFF_ENDIAN_BIG = 0 
 

TIFF_ENDIAN_LITTLE

TIFF_ENDIAN_LITTLE = 1 
 

TIFF_FIELD_TYPE_ASCII

TIFF_FIELD_TYPE_ASCII = 2 
 

TIFF_FIELD_TYPE_BYTE

TIFF_FIELD_TYPE_BYTE = 1 
 

TIFF_FIELD_TYPE_LONG

TIFF_FIELD_TYPE_LONG = 4 
 

TIFF_FIELD_TYPE_RATIONAL

TIFF_FIELD_TYPE_RATIONAL = 5 
 

TIFF_FIELD_TYPE_SHORT

TIFF_FIELD_TYPE_SHORT = 3 
 

TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO

TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO = 1 
 

TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB

TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB = 8 
 

TIFF_PHOTOMETRIC_INTERPRETATION_CMYK

TIFF_PHOTOMETRIC_INTERPRETATION_CMYK = 5 
 

TIFF_PHOTOMETRIC_INTERPRETATION_RGB

TIFF_PHOTOMETRIC_INTERPRETATION_RGB = 2 
 

TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED

TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED = 3 
 

TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO

TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO = 0 
 

TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR

TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR = 6 
 

TIFF_TAG_BITS_PER_SAMPLE

TIFF_TAG_BITS_PER_SAMPLE = 258 
 

TIFF_TAG_COMPRESSION

TIFF_TAG_COMPRESSION = 259 
 

TIFF_TAG_IMAGE_LENGTH

TIFF_TAG_IMAGE_LENGTH = 257 
 

TIFF_TAG_IMAGE_WIDTH

TIFF_TAG_IMAGE_WIDTH = 256 
 

TIFF_TAG_PHOTOMETRIC_INTERPRETATION

TIFF_TAG_PHOTOMETRIC_INTERPRETATION = 262 
 

TIFF_TAG_SAMPLES_PER_PIXEL

TIFF_TAG_SAMPLES_PER_PIXEL = 277 
 

TIFF_TAG_STRIP_BYTE_COUNTS

TIFF_TAG_STRIP_BYTE_COUNTS = 279 
 

TIFF_TAG_STRIP_OFFSETS

TIFF_TAG_STRIP_OFFSETS = 273 
 

UNPACK_TYPE_BYTE

UNPACK_TYPE_BYTE = 0 
 

UNPACK_TYPE_LONG

UNPACK_TYPE_LONG = 2 
 

UNPACK_TYPE_RATIONAL

UNPACK_TYPE_RATIONAL = 3 
 

UNPACK_TYPE_SHORT

UNPACK_TYPE_SHORT = 1