4 ms·
In my limited experience, the only thing I miss in chrome headless compared to commercial PDF to HTML tools is "smarter" page breaks support, aka avoid mostly e
by Guillaume86 6y ago
In my limited experience, the only thing I miss in chrome headless compared to commercial PDF to HTML tools is "smarter" page breaks support, aka avoid mostly empty pages.
I already tried to fill in a bug: https://bugs.chromium.org/p/chromium/issues/detail?id=953313#c11 https://bugs.chromium.org/p/chromium/issues/detail?id=953313... but the spec is not very clear nor requires the most compact arrangement possible. It would probably be a worthy addition to the spec even just for the environmental impact (limiting number of pages when printing).
- josefx 6y agoWhat I mostly miss from browsers is page numbering support. As far as I remember there is a standard but only a few commercial tools actually support it.
- Guillaume86 6y agoYou can try to polyfill that with something like https://github.com/pagedjs/pagedjs https://github.com/pagedjs/pagedjs
- josefx 6y agoInteresting, that seems to do what I was missing.