Pdf/Resource/Image/Tiff.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id: Tiff.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Pdf_Resource_Image_Tiff

Package: Zend\Pdf
TIFF image
Parent(s)
\Zend_Pdf_Resource_Image < \Zend_Pdf_Resource
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  TIFF_FIELD_TYPE_BYTE = 1
>VConstant  TIFF_FIELD_TYPE_ASCII = 2
>VConstant  TIFF_FIELD_TYPE_SHORT = 3
>VConstant  TIFF_FIELD_TYPE_LONG = 4
>VConstant  TIFF_FIELD_TYPE_RATIONAL = 5
>VConstant  TIFF_TAG_IMAGE_WIDTH = 256
>VConstant  TIFF_TAG_IMAGE_LENGTH = 257
>VConstant  TIFF_TAG_BITS_PER_SAMPLE = 258
>VConstant  TIFF_TAG_COMPRESSION = 259
>VConstant  TIFF_TAG_PHOTOMETRIC_INTERPRETATION = 262
>VConstant  TIFF_TAG_STRIP_OFFSETS = 273
>VConstant  TIFF_TAG_SAMPLES_PER_PIXEL = 277
>VConstant  TIFF_TAG_STRIP_BYTE_COUNTS = 279
>VConstant  TIFF_COMPRESSION_UNCOMPRESSED = 1
>VConstant  TIFF_COMPRESSION_CCITT1D = 2
>VConstant  TIFF_COMPRESSION_GROUP_3_FAX = 3
>VConstant  TIFF_COMPRESSION_GROUP_4_FAX = 4
>VConstant  TIFF_COMPRESSION_LZW = 5
>VConstant  TIFF_COMPRESSION_JPEG = 6
>VConstant  TIFF_COMPRESSION_FLATE = 8
>VConstant  TIFF_COMPRESSION_FLATE_OBSOLETE_CODE = 32946
>VConstant  TIFF_COMPRESSION_PACKBITS = 32773
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO = 0
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO = 1
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_RGB = 2
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED = 3
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_CMYK = 5
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR = 6
>VConstant  TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB = 8
>VConstant  TIFF_ENDIAN_BIG = 0
>VConstant  TIFF_ENDIAN_LITTLE = 1
>VConstant  UNPACK_TYPE_BYTE = 0
>VConstant  UNPACK_TYPE_SHORT = 1
>VConstant  UNPACK_TYPE_LONG = 2
>VConstant  UNPACK_TYPE_RATIONAL = 3

Properties

>VPropertyprotected$_bitsPerSample
Details
Type
n/a
>VPropertyprotected$_blackIsZero
Details
Type
n/a
>VPropertyprotected$_colorCode
Details
Type
n/a
>VPropertyprotected$_colorSpace
Details
Type
n/a
>VPropertyprotected$_compression
Details
Type
n/a
>VPropertyprotected$_endianType
Details
Type
n/a
>VPropertyprotected$_fileSize
Details
Type
n/a
>VPropertyprotected$_filter
Details
Type
n/a
>VPropertyprotected$_height
Details
Type
n/a
>VPropertyprotected$_imageDataLength
Details
Type
n/a
>VPropertyprotected$_imageDataOffset
Details
Type
n/a
>VPropertyprotected$_imageProperties
Details
Type
n/a
>VPropertyprotected\Zend_Pdf_ElementFactory_Interface $_objectFactory
inherited
Each Pdf resource (fonts, images, .
Inherited from: \Zend_Pdf_Resource::$$_objectFactory\Zend_Pdf_Resource_Image::$$_objectFactory

..) 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).

Details
Type
\Zend_Pdf_ElementFactory_Interface
Inherited_from
\Zend_Pdf_Resource::$$_objectFactory  
Inherited_from
\Zend_Pdf_Resource_Image::$$_objectFactory  
>VPropertyprotected\Zend_Pdf_Element_Object $_resource
>VPropertyprotected$_whiteIsZero
Details
Type
n/a
>VPropertyprotected$_width
Details
Type
n/a

Methods

methodpublic__clone() : void
inherited

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

Inherited from: \Zend_Pdf_Resource::__clone()\Zend_Pdf_Resource_Image::__clone()
methodpublic__construct(string $imageFileName) : void

Object constructor

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

Parameters
NameTypeDescription
$imageFileNamestring
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublicgetPixelHeight() : integer

Image height (defined in Zend_Pdf_Resource_Image_Interface)

Returns
TypeDescription
integer
methodpublicgetPixelWidth() : integer

Image width (defined in Zend_Pdf_Resource_Image_Interface)

Returns
TypeDescription
integer
methodpublicgetProperties() : array

Image properties (defined in Zend_Pdf_Resource_Image_Interface)

Returns
TypeDescription
array
methodprotectedunpackBytes(int $type, string $bytes) : void

Byte unpacking function

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

Parameters
NameTypeDescription
$typeint
$bytesstring
Throws
ExceptionDescription
\Zend_Pdf_Exception
Documentation was generated by phpDocumentor 2.0.0a12.