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