WKHTMLTOPDF — Is possible to display dynamic headers?
Im using wkhtmltopdf --header-html option, but it seems, that it really works only with html code. Is there any way I can add some PHP and force it to working somehow? I need to display Date and user´s e-mail on every page... Thanks for any advice ;) You can feed --header-html almost anything :) Try the following to see my point: wkhtmltopdf.exe --margin-top 30mm --header-html isitchristmas.com google.fi x.pdf So isitchristmas.com could be www.yoursite.com/magical/ponies.php Just to add, you cant run the php files locally so you need a webserver to serve them. If you need 100% local dynamic