Skip to content

Instantly share code, notes, and snippets.

@j-schreiber
Last active July 8, 2020 11:41
Show Gist options
  • Save j-schreiber/ca2105220456b94424c722ccba332189 to your computer and use it in GitHub Desktop.
Save j-schreiber/ca2105220456b94424c722ccba332189 to your computer and use it in GitHub Desktop.
CSS snippet to format a printed visualforce page as ANSI letter
/** DIN 5008 (Type A) with margins and paddings */
@page {
size: A4 portrait;
margin: 27mm 0mm 32mm 0mm; /** These margins control size of header and footer */
padding: 5mm 0mm; /** Paddings for content page area to header/footer */
}
/** ANSI Letter without individual margins */
@page {
size: letter portrait;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment