Wkhtmltopdf title on each page

I am using wkhtmltopdf to convert html to pdf.

I want to add a title to each page, but it only appears on the first page (table of contents). The command I use is "C:\Program Files\wkhtmltopdf\wkhtmltopdf.exe" toc --xsl-style-sheet default.xsl --header-html header.html http://a-url-to-a-page.com "some\folder\outputs\output-%time:~0,2%-%time:~3,2%-%time:~6,2%.pdf"

Any ideas?

+8
wkhtmltopdf
source share
1 answer

(OP solved and answered the editing question. The transcription here as a wiki community answer is albeit a bit short. See the unanswered question, but the problem is solved in the comment (or extended in the chat) )

OP wrote (a):

Finally, the problem was that --header-html should appear before the contents related to the table of contents ...

@Nenotlep wrote:

wkhtmltopdf especially concerned with the order of the arguments given.

+4
source share

All Articles