What are people using now that wkhtmltopdf
is deprecated?
Is there a maintained fork or a good drop-in replacement?
=> More informations about this toot | More toots from marcoroth@ruby.social
I've been using Ferrum using the pdf
method, but I was more looking for a CLI-based utility that doesn't need to open a browser.
Maybe the answer is just that there isn't a real drop-in replacement because it will never be as accurate as opening a browser.
=> More informations about this toot | More toots from marcoroth@ruby.social
@marcoroth please ping me once you found something.
PS: I thought that the base, wkhtml, was deprecated ages ago anyway?
=> More informations about this toot | More toots from alexanderadam@ruby.social
@alexanderadam yeah it was deprecated back in 2023.
=> More informations about this toot | More toots from marcoroth@ruby.social
@alexanderadam @marcoroth So… it depends on what you’re trying to achieve.
If you want to preserve an arbitrary web page as close to browser as possible you probably should use a browser.
If you’re trying to produce high quality PDFs from HTML you probably should go with Weasyprint (open source), AH Formatter, or PDFReactor.
If you want to generate PDFs from Ruby you should go for HexaPDF or Prawn.
=> More informations about this toot | More toots from pointlessone@status.pointless.one This content has been proxied by September (ba2dc).Proxy Information
text/gemini