Skip to content

Instantly share code, notes, and snippets.

@unixmonkey
Created June 9, 2012 16:13
Show Gist options
  • Select an option

  • Save unixmonkey/2901639 to your computer and use it in GitHub Desktop.

Select an option

Save unixmonkey/2901639 to your computer and use it in GitHub Desktop.
wkhtmltopdf.css
body { margin:0; padding:0; width:100%;
/* Turn off kerning to prevent odd spacing problem
when copying and pasting from PDFs on Windows */
text-rendering: optimize-speed; }
body, table { font-size: 13px; }
.page-numbers { text-align:right; }
div.alwaysbreak { page-break-before: always; }
div.nobreak:before { clear:both; }
div.nobreak{ page-break-inside: avoid;
/* http://code.google.com/p/wkhtmltopdf/issues/detail?id=9#c21 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment