News for hackers. Stuff that matters.
Re:I forgot about print style sheets (2016) by jswrenn on Tuesday April 27, 2021 @12:13PM (#26957917)
I think this title needs a '(2016)' appended to it.

Between print stylesheets and paged media, CSS has become one of my favorite ways to typeset documents documents where the layout of individual pages matters greatly. (LaTeX remains my prefered choice for documents where text flows between pages.)

I recently wrote up my experience typesetting my resume in HTML/CSS: https://jack.wrenn.fyi/blog/pdf-resume-from-html/

Re:I forgot about print style sheets (2016) by dpwm on Tuesday April 27, 2021 @01:41PM (#26959073)
Thanks for posting this. I was actually just today looking for a solutions to render a website as a PDF, and didn’t get as far as puppeteer – which is probably too heavy a dependency for my use case, but is still nice to know about.

Does anyone know of a print-oriented web-browser that understands CSS? It seems like the kind of thing that would be useful to many.

Re:I forgot about print style sheets (2016) by Lammy on Tuesday April 27, 2021 @02:57PM (#26959969)
Re:I forgot about print style sheets (2016) by Phrodo_00 on Wednesday April 28, 2021 @12:49AM (#26965717)
A few years ago I used wkhtml2pdf, which is a version of Qt webkit focused to turning webpages to PDF.

Looked up the project, and it looks like it's almost dead due to Qt dropping webkit, though.

Re:I forgot about print style sheets (2016) by math-dev on Tuesday April 27, 2021 @02:02PM (#26959289)
Re:I forgot about print style sheets (2016) by dpwm on Tuesday April 27, 2021 @05:33PM (#26961904)
Thanks for writing that up! I had no idea about paged.js and it’s pretty close to what I was looking for.
Re:I forgot about print style sheets (2016) by chipotle_coyote on Wednesday April 28, 2021 @01:16AM (#26965850)
I confess I'm torn between

(a) admiration for the work you put into this, and the nice result;

(b) wondering how much easier it would have been to get a similar result if you'd downloaded a free word processor or desktop publishing program. :)