src/DocBlox/Transformer/Writer/Pdf.php
- author
- Mike van Riel <[email protected]>
- category
- DocBlox
- copyright
- 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
- license
- http://www.opensource.org/licenses/mit-license.php MIT
- link
- http://docblox-project.org
- package
- Transformer
- subpackage
- Writers
- Classes
- DocBlox_Transformer_Writer_Pdf
Description
DocBlox
PHP Version 5
\DocBlox_Transformer_Writer_Pdf
- Extends from
- \DocBlox_Transformer_Writer_Abstract
- author
- Mike van Riel <[email protected]>
- category
- DocBlox
- license
- http://www.opensource.org/licenses/mit-license.php MIT
- link
- http://docblox-project.org
- link
- http://code.google.com/p/wkhtmltopdf/
- link
- http://blog.structuralartistry.com/post/2327213260/installing-wkhtmltopdf-on-ubuntu-server
- package
- Transformer
- subpackage
- Writers
- Methods
- transform
Description
A PDF writer which uses wkhtmltopdf to convert a single HTML file to PDF.
It is advised to have your own version of wkhtmltopdf installed on the machine where DocBlox runs. wkhtmltopdf relies on the presence of xserver (not necessarily running; in case of linux) to invoke webkit to generate the PDF.
Methods
transform
transform(
\DOMDocument $structure, \DocBlox_Transformer_Transformation $transformation
)
:
voidCalls the wkhtmltopdf executable to generate a PDF.
Arguments
- $structure
- \DOMDocument
- $transformation
- \DocBlox_Transformer_Transformation