Skip to content

Commit

Permalink
Merge pull request #715 from soundasleep/patch-1
Browse files Browse the repository at this point in the history
Add caveat on different DPI scaling on Windows/Linux
  • Loading branch information
unixmonkey authored Jan 17, 2018
2 parents 18fb311 + cbc3675 commit 3ed148c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ However, the wicked_pdf_* helpers will use file:/// paths for assets when using

If one image from your HTML cannot be found (relative or wrong path for ie), others images with right paths **may not** be displayed in the output PDF as well (it seems to be an issue with wkhtmltopdf).

wkhtmltopdf may render at different resolutions on different platforms. For example, Linux prints at 75 dpi (native for WebKit) while on Windows it's at the desktop's DPI (which is normally 96 dpi). [Use `:zoom => 0.78125`](https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2184) (75/96) to match Linux rendering to Windows.

### Inspiration

You may have noticed: this plugin is heavily inspired by the PrinceXML plugin [princely](http://github.com/mbleigh/princely/tree/master). PrinceXML's cost was prohibitive for me. So, with a little help from some friends (thanks [jqr](http://github.com/jqr)), I tracked down wkhtmltopdf, and here we are.
Expand Down

0 comments on commit 3ed148c

Please sign in to comment.