Skip to content


Subversion checkout URL

You can clone with
Download ZIP


pdfkit should be explicit about the error when all margin units are not the same #174

henrik opened this Issue · 3 comments

3 participants


wkhtmltopdf requires all margin units to be the same, e.g.:

$ wkhtmltopdf --margin-left 30mm --margin-right 1in test.html out.pdf
Loading page (1/2)
Error: Currently all margin units must be the same!

But if I pass the same options to pdfkit, I get a generic "command failed: …" message that never mentions the units.


@henrik Thanks for letting us know about this issue.

@sigmavirus24 I'm labeling this swallowed errors since it sounds like a consequence of what you were talking about.


Newer versions of PDFKit allow the user to enable the output from wkhtmltopdf to be printed.


Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.