Skip to content

Instantly share code, notes, and snippets.

@colinbm
Created February 16, 2012 09:44
Show Gist options
  • Save colinbm/1843685 to your computer and use it in GitHub Desktop.
Save colinbm/1843685 to your computer and use it in GitHub Desktop.
wkhtmltopdf settings for print
For A3:
wkhtmltopdf --page-width 297 --page-height 420 --dpi 300 --margin-right 0 --margin-top 0 --margin-bottom 0 --margin-left 0 http://wktest.local ~/Desktop/wktest.pdf
body {
margin: 0;
padding: 0;
background: #ccc;
height: 420mm;
width: 297mm;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment