wkhtmltopdf cover page

(4 posts) (2 voices)
  1. tardis89, Member

    I am trying to add a cover page to my mydbr pdf export.

    I am running the following command and am having an error where the cover page is not generated. When I run the command locally on the server it complains about "--margin-top being specified in the inocrrect location. The error is below:

    Failed command: "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" -q cover http:\localhost/test.html --header-html http://localhost/mydbrDev/user/export_header_pdf.php --margin-top 20 --header-spacing 8 C:\Windows\Temp\mydbr_export_854423126.html -

    I am running the following myDBR command to include the cover page:

    select 'dbr.wkhtmltopdf', 'cover http:\\localhost/test.html';

    The HTML code that I'm using for the cover page is below:

    Hello World

  2. myDBR Team, Key Master

    wkhtmltopdf wants some of the options in specific order. Run the updater and the cover option will be placed into the end.

    myDBR Team

  3. tardis89, Member

    I am currently running the current version (4.5.1 build 2766) and still have this issue.

  4. tardis89, Member

    Never mind. Updating was the issue. Thanks for the help.


You must log in to post.