Wkhtmltopdf: Command line tools to render HTML into PDF

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • WKHTMLToPDF

    Discontinued Convert HTML to PDF using Webkit (QtWebKit)

  • pagedjs

    Display paginated content in the browser and generate print books using web technology

  • At the company I work for we used chrome headless paired with https://github.com/pagedjs/pagedjs to fill in the gaps and it works very very well.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • puppeteer

    Node.js API for Chrome

  • It might be related on how you include fonts, I have seen a lot of weird behaviors unfortunately with that. Especially this response of an issue was important for my team: https://github.com/puppeteer/puppeteer/issues/422#issuecomme...

    Source: working on automatic PDF reporting in my current company.

  • resume.md

    Write your resume in Markdown, style it with CSS, output to HTML and PDF

  • For my use case[0], I found weasyprint easier to work with, it gives better results (in the sense they looked more like what I got when I saved to PDF using a browser), and it's more actively maintained.

    But in the end, I switched[1] to "chrome --headless --print-to-pdf-no-header", since it reproduces browser behavior pretty much by definition and, while it's a colossal dependency, it's also trivial for non-technical users to install.

    [0] https://github.com/mikepqr/resume.md

  • kwkhtmltopdf

    wkhtmltopdf server with transparent drop-in client

  • We use it too, with an api on top of it https://github.com/acsone/kwkhtmltopdf

  • handsonscala

    Discussion and and code examples for the book Hands-on Scala Programming

  • I tried using wkhtmltopdf for rendering my book https://www.handsonscala.com/ to pdf, but in general I found it pretty buggy and unreliable. Lines of text would get split between pages, some CSS like flexbox didnt render properly, font sizes and page scaling was sometimes off (e.g. a big image on a page would make everything else shrink), etc. In general it "worked", but it didn't work well.

    I ended up swapping in Google's Puppeteer library to render my PDFs, and despite needing a bit of plumbing to get my Scala build script talking to the node.js runtime, in the end it worked much better. Things looked the same in puppeteer PDF as they did in the browser, which is something I could never quite achieve with wkhtmltopdf

  • HexaPDF

    Versatile PDF creation and manipulation for Ruby

  • I use(d) wkhtmltopdf to implement PDF generation of certain pages in a Jekyll site (e.g. of my CV page) but was never really happy with the output since it was very hard to get it to look like a purpose-built PDF document even with a good print stylesheet. One of these days I'd like to try replacing it with a custom Kramdown converter that invokes HexaPDF: https://hexapdf.gettalong.org/

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • athenapdf

    Discontinued Drop-in replacement for wkhtmltopdf built on Go, Electron and Docker

  • We use pajed.js in conjunction with Arachnys/AthenaPdf [1] for HTML to PDF conversion, its a pretty nice experience.

    1. https://github.com/arachnys/athenapdf

  • jsPDF

    Client-side JavaScript PDF generation for everyone.

  • I used jsPDF for my ResumeToPDF site and it worked pretty well. Only thing I sort of had pain with was that I had to include SVG icons in-line in the html/javascript and had to convert them to base64 to be included in the PDF. And same thing for the custom fonts - I had to include base64 of the font TTFs to be embedded in the PDF:

    https://resumetopdf.com

    https://github.com/MrRio/jsPDF

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • DEMO - Voice to PDF - Complete PDF documents with voice commands using the Claude 3 Opus API

    4 projects | dev.to | 27 Apr 2024
  • Show HN: A no-frills CV template using Typst and YAML to version control CV data

    2 projects | news.ycombinator.com | 14 Jan 2024
  • What site/app do you use to build your resume?

    1 project | /r/developersIndia | 9 Dec 2023
  • Set column width across sections

    1 project | /r/LaTeX | 5 Dec 2023
  • An open-source React app for creating resumes using YAML with live preview and PDF export. Free, no sign up, works offline.

    2 projects | /r/reactjs | 3 Nov 2023