Skip to content
james_ edited this page Nov 15, 2024 · 5 revisions

HTML to PDF Conversion Alternatives

wkhtmltopdf and its dependent libraries have been abandoned since 2020, making them unsafe choices for HTML to PDF conversion. As a result, developers need to consider alternative solutions that are actively maintained and provide reliable PDF generation capabilities.

  1. Headless Chrome-based solutions

  2. Non-HTML PDF generation

    • Prawn
      • Pros: No external dependencies
      • Cons: Requires learning a new templating language
  3. Commercial solution

    • PrinceXML (expensive ~$3,800 for a 1-server license with 12 months upgrades and support)
    • HexaPDF (AGPL!, but with commercial license offerings) Can do form stuff!

Choose based on your specific needs, budget, resource constraints, and willingness to learn new tools.


Honorable mentions:

  • WickedPDF was great, but is wkhtmltopdf based.
  • If the output can be considered book like then consider calibre.
Clone this wiki locally