I've reported many bugs in projects that turn "URL" to "PDF". You need to be sure you're limiting the kind of URLs that people can submit. For example ensure that nobody makes a PDF of : * file:////etc/passwd * http://169.254.169.254/latest/meta-data/local-hostname * http://localhost:8080/ I'd say over half of the "PDF-creation" projects posted here have been vulnerable to some/all of those attacks. (I continue to be…
Show HN: Webpage to PDF Microservice
21–30 of 36 posts
Re: Show HN: Webpage to PDF Microservice
#22> Open as PDF
?
Re: Show HN: Webpage to PDF Microservice
#23I've reported many bugs in projects that turn "URL" to "PDF". You need to be sure you're limiting the kind of URLs that people can submit. For example ensure that nobody makes a PDF of : * file:////etc/passwd * http://169.254.169.254/latest/meta-data/local-hostname * http://localhost:8080/ I'd say over half of the "PDF-creation" projects posted here have been vulnerable to some/all of those attacks. (I continue to be…
Re: Show HN: Webpage to PDF Microservice
#24Why not just > Print > Open as PDF ?
Re: Show HN: Webpage to PDF Microservice
#25I'm still looking for a service like this, but that creates a nicely tagged PDF and conveys the HTML structure in the PDF tags. Tagged PDFs are a requirement in many processes for accessibility or archival reasons.
Why not using HTML instead of PDF? I'm the author of an extension that allows to save faithfully a web page into an HTML file [1]. From my point of view, that should be the best solution for archiving web pages in a file. Votes on HN disagree with me though [2], I wished I could understand why. [1] https://github.com/gildas-lormeau/SingleFile [2] https://news.ycombinator.com/item?id=18243721
Re: Show HN: Webpage to PDF Microservice
#26Re: Show HN: Webpage to PDF Microservice
#27I've reported many bugs in projects that turn "URL" to "PDF". You need to be sure you're limiting the kind of URLs that people can submit. For example ensure that nobody makes a PDF of : * file:////etc/passwd * http://169.254.169.254/latest/meta-data/local-hostname * http://localhost:8080/ I'd say over half of the "PDF-creation" projects posted here have been vulnerable to some/all of those attacks. (I continue to be…
Re: Show HN: Webpage to PDF Microservice
#28A basic command line alternative using Headless Chrome[1]: chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/ [1] https://developers.google.com/web/updates/2017/04/headless-c...
Similar functionality is packaged in wkhtmltopdf, which essentially runs Webkit headless to print to PDF. https://wkhtmltopdf.org/
Re: Show HN: Webpage to PDF Microservice
#29Re: Show HN: Webpage to PDF Microservice
#30 curl https://service.prerender.cloud/screenshot/https://google.com/ > out.jpg
curl https://service.prerender.cloud/pdf/https://google.com/ > out.pdf
curl https://service.prerender.cloud/https://google.com/ > out.html
https://www.prerender.cloud/