HtmlToPdf()
HtmlToPdf(string $target_path,string $body,string $name,boolean $crypt = false): \FAA\Obj\Result
Convert html to pdf
Convert the given html body to pdf file (uses wkhtmltopdf when installed, otherwise dompdf)
In case of a encryption needed a zip archive will be wrapped around.
Next to the output target the password will be generated into a file
Parameters
string |
$target_path |
Output storage path |
string |
$body |
The html to render to pdf |
string |
$name |
Name of the output file |
boolean |
$crypt |
Save as encrypted version |
Returns
\FAA\Obj\Result —A default system result object