Pdf/Image.php
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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Pdf
- Subpackage
- Images
- Version
- $Id$
\Zend_Pdf_Image
Package: Zend_Pdf\Images
Abstract factory class which vends {@link Zend_Pdf_Resource_Image} objects.
This class is also the home for image-related constants because the name of
the true base class ({@link Zend_Pdf_Resource_Image}) is not intuitive for the
end user.
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Methods
_extractJpegImage(\Zend_Pdf_FileParserDataSource $dataSource) : \Zend_Pdf_Resource_Image_Jpeg
static
Attempts to extract a JPEG Image from the data source.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$dataSource | \Zend_Pdf_FileParserDataSource |
Type | Description |
---|---|
\Zend_Pdf_Resource_Image_Jpeg | May also return null if the data source does not appear to contain valid image data. |
Exception | Description |
---|---|
\Zend_Pdf_Exception |
_extractPngImage(\Zend_Pdf_FileParserDataSource $dataSource) : \Zend_Pdf_Resource_Image_Png
static
Attempts to extract a PNG Image from the data source.
Parameters
Returns
Name | Type | Description |
---|---|---|
$dataSource | \Zend_Pdf_FileParserDataSource |
Type | Description |
---|---|
\Zend_Pdf_Resource_Image_Png | May also return null if the data source does not appear to contain valid image data. |
_extractTiffImage(\Zend_Pdf_FileParserDataSource $dataSource) : \Zend_Pdf_Resource_Image_Tiff
static
Attempts to extract a TIFF Image from the data source.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$dataSource | \Zend_Pdf_FileParserDataSource |
Type | Description |
---|---|
\Zend_Pdf_Resource_Image_Tiff | May also return null if the data source does not appear to contain valid image data. |
Exception | Description |
---|---|
\Zend_Pdf_Exception |
imageWithPath(string $filePath) : \Zend_Pdf_Resource_Image
static
Returns a {@link Zend_Pdf_Resource_Image} object by file path.
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$filePath | string | Full path to the image file. |
Type | Description |
---|---|
\Zend_Pdf_Resource_Image |
Exception | Description |
---|---|
\Zend_Pdf_Exception |