Pdf export - wkhtmltopdf debug

(4 posts) (2 voices)

Tags:

No tags yet.

  1. Dev, Member

    Hi Team,

    I am encountering the following error in one specific report when attempting to use the PDF option. Any assistance in understanding and resolving this issue would be greatly appreciated.

    To test the `wkhtmltopdf` PDF generation, copy the following command into the server's command line:

    ```
    myDBR saved the generated HTML file into /tmp/mydbr_export_126619886.html. File size is: 28081 bytes.
    $ wkhtmltopdf --margin-top "20" --header-spacing "8" --enable-local-file-access --header-html "https://reports.runloyal.com/user/export_header_pdf.php?header_title=Cash+Report%3A+12%2F28%2F2024+-+01%2F04%2F2025" --replace rdate "2025-01-04" --replace rtime "12:02:48 pm" /tmp/mydbr_export_126619886.html debug_output.pdf
    ```

    Thank you

  2. myDBR Team, Key Master

    Is the problem occurring with only one export?

    Please open a support ticket and include the export file (mydbr_export_126619886.html).

    Alternatively, you can follow the provided instructions and run the specified commands on the server.

    --
    myDBR Team

  3. Dev, Member

    Hi,

    This error is generated only on one report. Other reports works fine. When executing the above commands, I get the below errors.

    Loading pages (1/6)
    Error: Failed to load http://tmp/mydbr_export_126619886.html, with network status code 3 and http status code 0 - Host tmp not found
    Error: Failed loading page http:///tmp/mydbr_export_126619886.html (sometimes it will work just to ignore this error with --load-error-handling ignore)
    Exit with code 1 due to network error: HostNotFoundError

  4. myDBR Team, Key Master

    The http://tmp/ is not a valid URL. See where that comes from.

    Please open a support ticket for this.

    --
    myDBR Team


Reply

You must log in to post.