Last active
August 29, 2015 14:03
-
-
Save ionatan-israel/b372da5da060be2b6e3a to your computer and use it in GitHub Desktop.
Hoja de Estilos base para imprimir (Size Letter)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Cambria'; | |
src: url('fonts/Cambria.eot'); | |
src: local('☺'), | |
url('fonts/Cambria.woff') format('woff'), | |
url('fonts/Cambria.ttf') format('truetype'), | |
url('fonts/Cambria.svg') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
@media print and (width: 8.5in) and (height: 11in) { | |
@page { | |
margin: 1in; | |
size: letter; | |
} | |
} | |
@media print and (color) { | |
* { | |
-webkit-print-color-adjust: exact; | |
print-color-adjust: exact; | |
} | |
} | |
.arial {font-family: Arial;} | |
.bold {font-weight: bold;} | |
.calibri {font-family: Calibri;} | |
.cambria {font-family:'Cambria';} | |
/* font sizes */ | |
.size24 {font-size: 24pt;} | |
.size22 {font-size: 22pt;} | |
.size20 {font-size: 20pt;} | |
.size18 {font-size: 18pt;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
De lujo para usarla con wkhtmltopdf!
wkhtmltopdf -s Letter --print-media -T 0 -R 0 -B 0 -L 0 source.html destination.pdf