Skip to content

Conversation

@PiRifle
Copy link

@PiRifle PiRifle commented Jun 10, 2025

This PR introduces an additional PDF renderer alongside the existing SnappyPdf integration. The new renderer uses Google Chrome in headless mode to convert prepared HTML files into PDFs. This approach leverages the latest advancements in CSS and JavaScript rendering, allowing for more modern and dynamic layouts compared to the legacy wkhtmltopdf tool.

⚠️ Marked as Experimental:

Due to the broad surface area for potential exploits and Chrome’s full-featured rendering engine, this feature is marked experimental. Use with caution in untrusted environments or consider sandboxing when handling user-supplied HTML.

Why:

wkhtmltopdf is no longer actively maintained and lacks support for modern web standards. This Chrome-based solution offers a future-proof and standards-compliant alternative, without sacrificing output quality or flexibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant