| ▲ | tom_alexander 4 hours ago | |||||||||||||||||||
> obviously needs to be a PDF I've been making my reports in self-contained HTML files[0] and it works out so much better than PDF. It is not constrained by paper sizes, and it lets me add some nifty features. For example, I recently added support for hiding columns in a table using exclusively CSS. The only downside is browsers can render things slightly differently, but for my use cases I don't need pixel-perfect identical rendering. [0] Images are inlined base64-encoded, CSS/JS embedded with style and script tags. No external assets / no http requests. | ||||||||||||||||||||
| ▲ | giancarlostoro 4 hours ago | parent | next [-] | |||||||||||||||||||
You can also use media queries for printing specific styling too so you can remove things that maybe a user doesn't need to print out: https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Medi... | ||||||||||||||||||||
| ▲ | dmboyd 3 hours ago | parent | prev | next [-] | |||||||||||||||||||
Being constrained by page sizes is “a feature, not a bug” in most contexts. If I’m calling out numbers on the 3rd line of page 38 of a report, it helps if that’s consistent. | ||||||||||||||||||||
| ▲ | dwroberts 4 hours ago | parent | prev | next [-] | |||||||||||||||||||
Unless you can embed fonts [into the page itself] you aren’t beating PDF | ||||||||||||||||||||
| ||||||||||||||||||||
| ▲ | kgwxd 3 hours ago | parent | prev [-] | |||||||||||||||||||
The only reason PDFs still have a job is: pixel perfect consistency; the built-in validity stuff (ensuring the document wasn't altered, etc.); or the customer doesn't need the other things, but isn't open to alternatives. Otherwise, PDF is just a major headache. | ||||||||||||||||||||
| ||||||||||||||||||||