error export pdf

(3 posts) (2 voices)


No tags yet.

  1. thang, Member


    I came up with this error when trying to export the report to pdf:

    There was an error (code:1) producing the pdf document Failed command: wkhtmltopdf -q -O Landscape -s A4 --margin-top "20" --header-spacing "8" --header-html "https://url/report/user/export_header_pdf.php?header_logo=%3Cimg+src%3D%22https%3A%2F%2Furl%2Freport%2Fuser%2Fimages%2Flogo.png%22+width%3D%2247%22+height%3D%2223%22+alt%3D%22logo%22%3E" --replace rdate "2021-08-18" --replace rtime "12:12:10 am" /tmp/mydbr_export_1577920673.html -

    Could you please check for me, thanks!

  2. myDBR Team, Key Master

    This means that when myDBR run the wkhtmltopdf-command on the server, the command fails.

    Do you have the wkhtmltopdf installed on the server and have you tested that the installation works?

    You can also add following command to the report:

    select 'dbr.export.options','debug', 1;

    This will give you the opportunity to run the same command myDBR is running when it converts the report to PDF. Follow the instructions and run the presented command from the command line in the server to see what is causing the command to fail.

    myDBR Team

  3. thang, Member

    I just upgrade wkhtmltopdf from (0.12.4) to (0.12.5 (with patched qt)) and it fixes the above issue.

    Thank you.


You must log in to post.