|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Pdf |
|
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
19 * @version $Id: Generator.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
20 */ |
|
21 |
|
22 |
|
23 /** Zend_Pdf_Trailer */ |
|
24 require_once 'Zend/Pdf/Trailer.php'; |
|
25 |
|
26 /** |
|
27 * PDF file trailer generator (used for just created PDF) |
|
28 * |
|
29 * @package Zend_Pdf |
|
30 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
31 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
32 */ |
|
33 class Zend_Pdf_Trailer_Generator extends Zend_Pdf_Trailer |
|
34 { |
|
35 /** |
|
36 * Object constructor |
|
37 * |
|
38 * @param Zend_Pdf_Element_Dictionary $dict |
|
39 */ |
|
40 public function __construct(Zend_Pdf_Element_Dictionary $dict) |
|
41 { |
|
42 parent::__construct($dict); |
|
43 } |
|
44 |
|
45 /** |
|
46 * Get length of source PDF |
|
47 * |
|
48 * @return string |
|
49 */ |
|
50 public function getPDFLength() |
|
51 { |
|
52 require_once 'Zend/Pdf.php'; |
|
53 return strlen(Zend_Pdf::PDF_HEADER); |
|
54 } |
|
55 |
|
56 /** |
|
57 * Get PDF String |
|
58 * |
|
59 * @return string |
|
60 */ |
|
61 public function getPDFString() |
|
62 { |
|
63 require_once 'Zend/Pdf.php'; |
|
64 return Zend_Pdf::PDF_HEADER; |
|
65 } |
|
66 |
|
67 /** |
|
68 * Get header of free objects list |
|
69 * Returns object number of last free object |
|
70 * |
|
71 * @return integer |
|
72 */ |
|
73 public function getLastFreeObject() |
|
74 { |
|
75 return 0; |
|
76 } |
|
77 } |