clara.vrx.palo-alto.ca.us
articles | bespoke web | design | editor | WORKS
Inu AI | PHOTOESSAYS | pumpkin
ART | design | food | book | tours | our garden
shirts | portfolio | ocad | OCADU DIGITAL
2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024
january | april | july | august | september | OCTOBER | november | december
brooklyn | fonts | harris | HTML TO PDF | kandinsky | klee | lenses | raspberry pi
HTML to PDF | OCADU Digital
HTML to PDF

Printing html to pdf:

.keep-together {
page-break-inside: avoid;
}
.break-before {
page-break-before: always;
}
.break-after {
page-break-after: always;
}
How to insert a page break in HTML so wkhtmltopdf parses it?

Welllllll. yes and no.
It depends on the page. Look at any book, what do you see? Lots of words and a couple of pictures. Gutenberg would recognize this.
In fact ALL our text processing tools are for pages Gutenberg would have no problem with.
What this code does is break only in the middle of text. Therefore it assumed any DIV or TABLE will never be larger than one printed page.
Modern websites may not obey this Gutenberg era rule. You and I both have websites this can not work on.
I'll be interested to see what it does with these. Worst case: blank pages.
01-html_to_pdft.jpg
01-html_to_pdf.jpg
xs lg
Remember me, buy my shirts!
pop art MBZ