Definition at line 36 of file PDF.php.
◆ __construct()
PHPExcel_Writer_PDF::__construct |
( |
PHPExcel |
$phpExcel | ) |
|
Instantiate a new renderer of the configured type within this container class.
- Parameters
-
- Exceptions
-
Definition at line 52 of file PDF.php.
53 {
55 if (is_null($pdfLibraryName)) {
57 }
58
60 if (is_null($pdfLibraryName)) {
62 }
63 $includePath = str_replace('\\', '/', get_include_path());
64 $rendererPath = str_replace('\\', '/', $pdfLibraryPath);
65 if (strpos($rendererPath, $includePath) === false) {
66 set_include_path(get_include_path() . PATH_SEPARATOR . $pdfLibraryPath);
67 }
68
71 }
$rendererName
Include PHPExcel.
static getPdfRendererName()
Return the PDF Rendering Library that PHPExcel is currently configured to use (e.g.
static getPdfRendererPath()
Return the directory path to the PDF Rendering Library that PHPExcel is currently configured to use.
References $rendererName, PHPExcel_Settings\getPdfRendererName(), and PHPExcel_Settings\getPdfRendererPath().
◆ __call()
PHPExcel_Writer_PDF::__call |
( |
|
$name, |
|
|
|
$arguments |
|
) |
| |
Magic method to handle direct calls to the configured PDF renderer wrapper class.
- Parameters
-
string | $name | Renderer library method name |
mixed[] | $arguments | Array of arguments to pass to the renderer method |
- Returns
- mixed Returned data from the PDF renderer wrapper method
Definition at line 81 of file PDF.php.
82 {
83 if ($this->_renderer === NULL) {
85 }
86
87 return call_user_func_array(array($this->_renderer, $name), $arguments);
88 }
◆ save()
PHPExcel_Writer_PDF::save |
( |
|
$pFilename = null | ) |
|
{Save PHPExcel to file.
- Parameters
-
string | $pFilename | Name of the file to save |
- Exceptions
-
}
Implements PHPExcel_Writer_IWriter.
Definition at line 93 of file PDF.php.
94 {
95 $this->_renderer->save($pFilename);
96 }
◆ $_renderer
PHPExcel_Writer_PDF::$_renderer = NULL |
|
private |
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/PDF.php