2 ms·
Honestly, I've been Chrome's print to PDF + Quartz Filter to compress JPEGs for over a year. These are the most important tricks: .A4page { width: 793px;
by tambourine_man 12y ago
Honestly, I've been Chrome's print to PDF + Quartz Filter to compress JPEGs for over a year.
These are the most important tricks:
.A4page {
width: 793px;
height: 1120px;
position: relative;
padding: 200px 50px 50px;
box-sizing: border-box;
}
@media all {
.page-break { display: none; margin-bottom: 100px; }
}
@media print {
.page-break { display: block; page-break-before: always; }
}
Good font rendering, selectable text. Not perfect, but the best I've seen so far.
- sdfjkl 12y agoThat's basically what wkhtmltopdf does.