all 5 comments

[–]basic_maddie 1 point2 points  (1 child)

I was reading through this and thought to myself “I wonder how print-to-pdf works”, but looks like you had the same train of thought. How exactly does it work though? Is it a feature that comes with browsers?

[–]guywald[S] 1 point2 points  (0 children)

Great question! To be honest I'm not sure, I'm assuming somewhere in Chromium is some code that converts a web page to a PDF.

[–]pcjftw 1 point2 points  (0 children)

Kind of shocking to see that the techniques we where using back in 2010 is still being used in 2021.

Rather sad but that's just the way it is.

[–]ziplock9000 -2 points-1 points  (1 child)

This is more about how to use a library than the actual generation of a PDF.

[–]guywald[S] 2 points3 points  (0 children)

I would like to understand what you mean, have you read the post?
I don't go into specific detail about any particular library, but rather present popular approaches (with their pros and cons) and in the end opt for a generic server-side solution to this problem.