1 | <?php |
||
29 | class Pdf implements IWriter |
||
30 | { |
||
31 | /** |
||
32 | * The wrapper for the requested PDF rendering engine. |
||
33 | * |
||
34 | * @var PDF\Core |
||
35 | */ |
||
36 | private $renderer = null; |
||
37 | |||
38 | /** |
||
39 | * Instantiate a new renderer of the configured type within this container class. |
||
40 | * |
||
41 | * @param \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet PhpSpreadsheet object |
||
42 | * |
||
43 | * @throws Exception when PDF library is not configured |
||
44 | */ |
||
45 | 4 | public function __construct(Spreadsheet $spreadsheet) |
|
55 | |||
56 | /** |
||
57 | * Magic method to handle direct calls to the configured PDF renderer wrapper class. |
||
58 | * |
||
59 | * @param string $name Renderer library method name |
||
60 | * @param mixed[] $arguments Array of arguments to pass to the renderer method |
||
61 | * |
||
62 | * @return mixed Returned data from the PDF renderer wrapper method |
||
63 | */ |
||
64 | public function __call($name, $arguments) |
||
72 | |||
73 | /** |
||
74 | * {@inheritdoc} |
||
75 | */ |
||
76 | 4 | public function save($pFilename = null) |
|
80 | } |
||
81 |