1 | <?php |
||
16 | class PdfWriter |
||
17 | { |
||
18 | /** |
||
19 | * @var ObjectWriter |
||
20 | */ |
||
21 | private $objectWriter; |
||
22 | |||
23 | /** |
||
24 | * @var PdfWriterOptions |
||
25 | */ |
||
26 | private $options; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $permanentFileIdentifier; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $changingFileIdentifier; |
||
37 | |||
38 | /** |
||
39 | * @var EncryptionInterface|null |
||
40 | */ |
||
41 | private $encryption; |
||
42 | |||
43 | /** |
||
44 | * @param SplFileObject $fileObject |
||
45 | */ |
||
46 | public function __construct(SplFileObject $fileObject, PdfWriterOptions $options) |
||
59 | |||
60 | /** |
||
61 | * Closes the document by writing the file trailer. |
||
62 | * |
||
63 | * While the PDF writer will remove all references to the passed in file object in itself to avoid further writing |
||
64 | * and to allow the file pointer to be closed, the callee may still have a reference to it. If that is the case, |
||
65 | * make sure to unset it if you don't need it. |
||
66 | * |
||
67 | * Any further attempts to append data to the PDF writer will result in an exception. |
||
68 | */ |
||
69 | public function closeDocument() |
||
88 | |||
89 | /** |
||
90 | * Creates a PDF writer which writes everything to a file. |
||
91 | * |
||
92 | * @param string $filename |
||
93 | * @return static |
||
94 | */ |
||
95 | public static function toFile($filename) |
||
99 | |||
100 | /** |
||
101 | * Creates a PDF writer which outputs everything to the STDOUT. |
||
102 | * |
||
103 | * @return static |
||
104 | */ |
||
105 | public static function output() |
||
109 | } |
||
110 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.