File indexing completed on 2024-12-22 05:36:56

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Pdf
0017  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0018  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0019  * @version    $Id$
0020  */
0021 
0022 
0023 /** Zend_Pdf_Trailer */
0024 // require_once 'Zend/Pdf/Trailer.php';
0025 
0026 /**
0027  * PDF file trailer generator (used for just created PDF)
0028  *
0029  * @package    Zend_Pdf
0030  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0031  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0032  */
0033 class Zend_Pdf_Trailer_Generator extends Zend_Pdf_Trailer
0034 {
0035     /**
0036      * Object constructor
0037      *
0038      * @param Zend_Pdf_Element_Dictionary $dict
0039      */
0040     public function __construct(Zend_Pdf_Element_Dictionary $dict)
0041     {
0042         parent::__construct($dict);
0043     }
0044 
0045     /**
0046      * Get length of source PDF
0047      *
0048      * @return string
0049      */
0050     public function getPDFLength()
0051     {
0052         // require_once 'Zend/Pdf.php';
0053         return strlen(Zend_Pdf::PDF_HEADER);
0054     }
0055 
0056     /**
0057      * Get PDF String
0058      *
0059      * @return string
0060      */
0061     public function getPDFString()
0062     {
0063         // require_once 'Zend/Pdf.php';
0064         return Zend_Pdf::PDF_HEADER;
0065     }
0066 
0067     /**
0068      * Get header of free objects list
0069      * Returns object number of last free object
0070      *
0071      * @return integer
0072      */
0073     public function getLastFreeObject()
0074     {
0075         return 0;
0076     }
0077 }