123 #require_once 'Zend/Pdf/Resource/ImageFactory.php'; 130 #require_once 'Zend/Pdf/FileParserDataSource/File.php'; 136 $fileExtension = strtolower(pathinfo($filePath, PATHINFO_EXTENSION));
141 switch ($fileExtension) {
158 #require_once 'Zend/Pdf/Exception.php'; 159 throw new Zend_Pdf_Exception(
"Cannot create image resource. File extension not known or unsupported type.");
173 #require_once 'Zend/Pdf/Exception.php'; 196 #require_once 'Zend/Pdf/Exception.php'; 197 throw new Zend_Pdf_Exception(
'Jpeg image fileparser is not implemented. Old styly implementation has to be used.');
199 #require_once 'Zend/Pdf/FileParser/Image/Jpeg.php'; 200 $imageParser =
new Zend_Pdf_FileParser_Image_Jpeg($dataSource);
201 #require_once 'Zend/Pdf/Resource/Image/Jpeg.php'; 217 #require_once 'Zend/Pdf/FileParser/Image/Png.php'; 219 #require_once 'Zend/Pdf/Resource/Image/Png.php'; 236 #require_once 'Zend/Pdf/Exception.php'; 237 throw new Zend_Pdf_Exception(
'Tiff image fileparser is not implemented. Old styly implementation has to be used.');
239 #require_once 'Zend/Pdf/FileParser/Image/Tiff.php'; 240 $imageParser =
new Zend_Pdf_FileParser_Image_Tiff($dataSource);
241 #require_once 'Zend/Pdf/Resource/Image/Tiff.php';
const TIFF_FIELD_TYPE_LONG
static _extractJpegImage($dataSource)
const PNG_INTERLACING_DISABLED
const TIFF_FIELD_TYPE_SHORT
const TIFF_PHOTOMETRIC_INTERPRETATION_YCBCR
const TIFF_PHOTOMETRIC_INTERPRETATION_BLACK_IS_ZERO
const TIFF_TAG_STRIP_BYTE_COUNTS
const TIFF_TAG_BITS_PER_SAMPLE
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB
const TIFF_TAG_STRIP_OFFSETS
static _extractTiffImage($dataSource)
const TIFF_FIELD_TYPE_BYTE
const TIFF_PHOTOMETRIC_INTERPRETATION_RGB_INDEXED
const PNG_COMPRESSION_DEFAULT_STRATEGY
const PNG_CHANNEL_GRAY_ALPHA
const TIFF_TAG_SAMPLES_PER_PIXEL
const TIFF_PHOTOMETRIC_INTERPRETATION_WHITE_IS_ZERO
const TIFF_COMPRESSION_FLATE
const TIFF_TAG_IMAGE_LENGTH
const TIFF_COMPRESSION_GROUP_4_FAX
static _extractPngImage($dataSource)
const TIFF_TAG_COMPRESSION
const TIFF_COMPRESSION_LZW
const TIFF_PHOTOMETRIC_INTERPRETATION_CMYK
static imageWithPath($filePath)
const TIFF_COMPRESSION_JPEG
const TIFF_COMPRESSION_PACKBITS
const PNG_COMPRESSION_FILTERED
const PNG_COMPRESSION_RLE
const PNG_COMPRESSION_HUFFMAN_ONLY
const TIFF_TAG_PHOTOMETRIC_INTERPRETATION
const TIFF_COMPRESSION_UNCOMPRESSED
const TIFF_COMPRESSION_FLATE_OBSOLETE_CODE
const CANT_DETERMINE_IMAGE_TYPE
const PNG_CHANNEL_RGB_ALPHA
const TIFF_FIELD_TYPE_RATIONAL
const PNG_CHANNEL_INDEXED
const TIFF_COMPRESSION_CCITT1D
const TIFF_FIELD_TYPE_ASCII
const TIFF_PHOTOMETRIC_INTERPRETATION_CIELAB
const TIFF_COMPRESSION_GROUP_3_FAX
const TIFF_TAG_IMAGE_WIDTH
static factory($filename)
const PNG_INTERLACING_ENABLED