Attempt to download PDF version of the document (invoice, notification, etc) in the PBA Provider or Customer Control Panel fails with one of the errors below:
PDF generation failed Error on executing external command: <pdf_conversion_command>
([../stlrt/AMapFile.cc:106] unable to open a file '/tmp/pdfxgphzn.pdf': -1)
or the downloaded document is blank.
Possible Causes and Resolutions
Incorrect HTML to PDF conversion command is configured in PBA Provider Control Panel at Communication Director > Notification Manager > PDF Conversion Setting, check if the command syntax is correct:
There may be command variations with different charsets, htmldoc combination with iconv utility or any other third-party PDF-converter can be used, for more details of correct syntax refer to the documentation of the utility used (these are all third-party utilities).
Try to execute the same command directly on the server.
Check the MESSAGE.log on the PBA Application server for the details of the error.
Possible errors with the htmldoc utility executing (which is used in PBA by default):
"ERR005: Unable to open character set file" - incorrect encoding in the command, see details in https://kb.parallels.com/112689
"ERR404: Not Found ()" or "ERR010: Unable to connect to <...>" - logo file cannot be downloaded, see details in https://kb.parallels.com/117288
"PHP Fatal error: Maximum execution time of X seconds exceeded in /usr/local/html2pdf /css.property.handler.class.php" - timeout set up in PHP settings is less than time required for the document generation, see details in https://kb.parallels.com/117290
"PHP Fatal error: Allowed memory size of X bytes exhausted" - the memory_limit PHP setting does not allow the PDF to be generated successfully, see details in https://kb.parallels.com/117312
- Other htmldoc errors: http://www.msweet.org/documentation/project1/HTMLDOC.html#9_4_3