mileszs / wicked_pdf

PDF generator (from HTML) plugin for Ruby on Rails
http://www.mileszs.com/wicked-pdf-plugin
MIT License
3.53k stars 642 forks source link

Cover Margin Issue #347

Open ffigueroa opened 9 years ago

ffigueroa commented 9 years ago

Hi, i'm making a quote template, the issue is the margin of the document is present on cover also.

issuecover

unixmonkey commented 9 years ago

The margins are document-global (as if you did page-setup before printing), and this is not supported by wkhtmltopdf (or wicked_pdf).

The workaround to this would be to create the cover as a separate PDF document from the rest, and stitch them together with PDFtk or something like that.

altjx commented 4 years ago

Hi @unixmonkey,

Is this still the case in the latest version? I spent quite awhile trying to figure this out. Just now running into this issue :(