PdfDocumentWriter
New in 0.3.0
Version 0.4.0
Document writer provider. Transforms document object into PDF document
Properties
Name |
Type |
Access |
Description |
No properties |
Methods
Name |
Type |
Description |
save() |
void |
Transform document into PDF document and saves as file in given location |
toString() |
string |
Transform document into PDF document and returns as binary string |
Examples
Saves PDF as file
$writer = new PdfDocumentWriter($document);
$writer->save('myFile.pdf');
Saves PDF as text
$writer = new PdfDocumentWriter($document);
echo $writer->toString();