Skip to content
Amy Unger edited this page May 1, 2015 · 4 revisions

Troubleshooting

Errno:: Broken Pipe error

See this wiki page

Ubuntu WKHTMLTOPDF and rvm

See this wiki page

'page-break-inside: avoid' on tr elements not respected

See this wiki page

Unknown long argument --disable-smart-shrinking

This can happen when You use wkhtmltopdf in oder version then You should (for example from Ubuntu repository), to fix this You must use version from http://code.google.com/p/wkhtmltopdf/downloads/list or this from PDFkit/bin

Optimizations

PDFKit does some rather expensive operations to keep the API simple, like parsing your html to extract stylesheets.
If you need to speed it up see this gist https://gist.github.com/1330326

Changing the orientation of the page

Include the following tag on the page that you are trying to render:

<meta name="pdfkit-orientation" content="Landscape"/>

Clone this wiki locally