Earlier quoted context omitted.
Why not simply press Ctrl+p and print to PDF?
We have tried it in the past, just doesn't work reliably with different html configurations. Does ctrl+p on this page -> https://jaresume.com/thomas look good for you?
Show HN: Webpage to PDF Microservice
11–20 of 36 posts
Re: Show HN: Webpage to PDF Microservice
#12Earlier quoted context omitted.
We have tried it in the past, just doesn't work reliably with different html configurations. Does ctrl+p on this page -> https://jaresume.com/thomas look good for you?
Have you tried using a print media stylesheet? You could hide the navigation, reduce the whitespace, maybe shrink the font size a little bit, and remove link text decoration.
I think ideally, because the resume renderer is a react component, I'd rather just boot up chromium with the react component and resume data and do a fully clean render of the page into pdf.
We shall see.
Re: Show HN: Webpage to PDF Microservice
#13 chrome --headless --disable-gpu --print-to-pdf https://www.chromestatus.com/
[1] https://developers.google.com/web/updates/2017/04/headless-c...Re: Show HN: Webpage to PDF Microservice
#14A 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...
Re: Show HN: Webpage to PDF Microservice
#15Tagged PDFs are a requirement in many processes for accessibility or archival reasons.
Re: Show HN: Webpage to PDF Microservice
#16I discovered the project Weasyprint[2] a few months ago. I find it easier to use, and very powerful when using Python. You can define a custom loader to inject images or styles generated on the fly for instance.
There are still some missing features compared to wkhtmltopdf, such as defining a custom footer and header, but it's a very promising project.
Re: Show HN: Webpage to PDF Microservice
#17In Chrome Dev Tools, click on the devices button (the icon with the phone and tablet). Using the top-right menu, select "Capture full size screenshot".
Walla, you now have a full size screenshot that you can convert into PDF.
Incidentally, I am author of https://www.pagedash.com, which is a personal web scrapbook which allows you to capture the current page as HTML and generate links to share with others.
Re: Show HN: Webpage to PDF Microservice
#18I'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.
Re: Show HN: Webpage to PDF Microservice
#19I find wkhtmltopdf very difficult to work with, for instance the official documentation is just a man [1]. I discovered the project Weasyprint[2] a few months ago. I find it easier to use, and very powerful when using Python. You can define a custom loader to inject images or styles generated on the fly for instance. There are still some missing features compared to wkhtmltopdf, such as defining a custom footer and h…
Re: Show HN: Webpage to PDF Microservice
#20You can achieve this using just the browser. In Chrome Dev Tools, click on the devices button (the icon with the phone and tablet). Using the top-right menu, select "Capture full size screenshot". Walla, you now have a full size screenshot that you can convert into PDF. Incidentally, I am author of https://www.pagedash.com , which is a personal web scrapbook which allows you to capture the current page as HTML and ge…