Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
henrik opened this Issue · 3 comments

3 participants

@henrik

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.

@cdwort
Owner

@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.

@sigmavirus24
Owner

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

@henrik

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.