←back to thread

262 points el3ctron | 1 comments | | HN request time: 0.324s | source
Show context
teddy-smith ◴[] No.46174872[source]
It's extremely easy to convert HTML/CSS to a PDF with the print to PDF feature of the browser.

All papers should be in HTML/CSS or Tex then just simply converted to PDF.

Why are we even talking about this?

replies(6): >>46174925 #>>46174989 #>>46175090 #>>46175140 #>>46175487 #>>46176356 #
carlosjobim ◴[] No.46175487[source]
Except you can't have page breaks, three links in a row, anchor links.
replies(1): >>46177658 #
teddy-smith ◴[] No.46177658[source]
@media print { .page, .page-break { break-after: page; } }
replies(1): >>46177997 #
carlosjobim ◴[] No.46177997[source]
It doesn't function in real use, it's just theoretical.
replies(1): >>46182904 #
teddy-smith ◴[] No.46182904[source]
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/P...

Literally part of Mozilla's docs.

replies(1): >>46184992 #
1. carlosjobim ◴[] No.46184992[source]
That's theory. Can you send me a link to any html file where this actually works? It's a problem I'd love to have solved.

Edit to clarify: The break-after property works with the worthless print dialogues, but doesn't function with "Export to PDF", which is what most people will want to use.