Hi
I hope someone can help with this.
I am using wkhtmltopdf as the final stage in a reporting workflow that uses R/RMarkdown to create an HTML document that is then converted to PDF using a command like (paths edited):
"C:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe" --dpi 200 --page-offset 1 -L 20mm -R 20mm --header-html code/report_template_header.html --footer-html code/report_template_footer.html --enable-local-file-access "file:///X:/temp/body.html" "X:/temp/body.pdf"
The report content is dynamic and includes long tables and graphs. Mostly the conversion renders fine but sometimes the returned PDF is the correct number of pages long but every page is blank except for the header/footer content (page number, date etc). Weirder still, when I move the HTML file to a different PC and run the same command the PDF renders correctly. Both PCs are running wkhtmtopdf version 0.12.6.
Does anyone have a suggestion how to resolve this? For confidentiality reasons it is impossible to share sample code.
Simon