Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

print to pdf setting css for A4 size

@page {
  size: A4;
  margin: 0;
}
@media print {
  html, body {
    width: 210mm;
    height: 297mm;
  }
  /* ... the rest of the rules ... */
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #pdf #setting #css #size
ADD COMMENT
Topic
Name
5+8 =