Software Alternatives & Reviews

wkhtmltopdf VS WeasyPrint

Compare wkhtmltopdf VS WeasyPrint and see what are their differences

wkhtmltopdf logo wkhtmltopdf

wkhtmltopdf is an open source (LGPL) command line tools to render HTML into PDF and various image...

WeasyPrint logo WeasyPrint

WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF.
  • wkhtmltopdf Landing page
    Landing page //
    2021-10-21
  • WeasyPrint Landing page
    Landing page //
    2023-10-09

wkhtmltopdf videos

✔️ Como instalar wkhtmltopdf ubuntu (compatible con cualquier odoo 11) Facil y rapido 2018

WeasyPrint videos

No WeasyPrint videos yet. You could help us improve this page by suggesting one.

+ Add video

Category Popularity

0-100% (relative to wkhtmltopdf and WeasyPrint)
HTML To PDF
69 69%
31% 31
PDF Conversion API
70 70%
30% 30
PDF Tools
67 67%
33% 33
PDF Creator
71 71%
29% 29

User comments

Share your experience with using wkhtmltopdf and WeasyPrint. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

wkhtmltopdf might be a bit more popular than WeasyPrint. We know about 33 links to it since March 2021 and only 29 links to WeasyPrint. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

wkhtmltopdf mentions (33)

  • Htmldocs: Typeset and Generate PDFs with HTML/CSS
    Wkhtmltopdf[1] uses the QT WebKit renderer. I used it as part of my job hut work-flow with pandoc to get pdf resumes from markdown. It got me a job, so there's that. [1] https://wkhtmltopdf.org/. - Source: Hacker News / 3 months ago
  • HexaPDF: Versatile PDF creation and manipulation library in Ruby
    I've been using WkhtmlToPdf all this while, so this seems a better option to try since it's pure Ruby. https://wkhtmltopdf.org/. - Source: Hacker News / 4 months ago
  • Show HN: Generate pdf with gitbook or mdbook url
    In 2014 we used wkhtmltopdf[0] to generate PDF copies of Cloudfoundry docs for every version every release, and maybe that's what I'd reach for now. Not sure if Qt WebKit has similar limits as Chromium. Not that you asked, but I am sitting here silently judging whoever let those pages get that large. Enough html to cap out RAM? Chesterton's Fence dictates that I presume your upstream's hands were tied, but wowee!... - Source: Hacker News / 6 months ago
  • Writerside – a new technical writing environment from JetBrains
    In most cases no, AsciiDoctor-PDF converter uses the Ruby library PDF library Prawn to generate PDFs, However, there are alternative PDF converters which do convert from HTML (the VSC AsciiDoctor plug-in allows the option to use a different converter), but I don't think they use chrome. Please note that using different pdf converters is a bit of an advanced topic. https://wkhtmltopdf.org/, and asciidoctor-web-pdf. - Source: Hacker News / 6 months ago
  • Generate invoice PDF file using HTML template
    There are multiple options for how to convert HTML to PDF, one could be by using open-source projects like Puppeteer or wkhtmltopdf. I wrote a separate post How to convert HTML to PDF using Puppeteer, but now for simplicity, I going to use html2pdf.app. Its free plan gives 100 credits per month, excellent! - Source: dev.to / 8 months ago
View more

WeasyPrint mentions (29)

  • Launch HN: Onedoc (YC W24) – A better way to create PDFs
    Is there a reason you didn't consider something like Weasyprint? https://weasyprint.org I've gone through a number of systems to convert CV's, business cards, and other docs and it hasn't let me down yet. - Source: Hacker News / about 1 month ago
  • CSS for Printing to Paper
    You don't _have_ to use a browser. I had very good results with Weasyprint [0]. And there's also PrinceXML [1] if you're willing to pay. [0]: https://weasyprint.org/. - Source: Hacker News / about 2 months ago
  • Show HN: A new open-source library to design PDF using React
    Thanks for your answer! I imagined you would be using PrinceXML behind the scenes since that is probably the gold standard in HTML+CSS rendering. The only open source alternative I know of is WeasyPrint at https://weasyprint.org/. I'm not sure how well it fares against PrinceXML, though. And thanks for the pointer to Taffy - I didn't know it before! - Source: Hacker News / 2 months ago
  • Htmldocs: Typeset and Generate PDFs with HTML/CSS
    Some people might be interested in https://weasyprint.org/. - Source: Hacker News / 3 months ago
  • Ask HN: What's the best way to write a book in Markdown?
    I use Weasyprint [1] to generate a PDF from HTML, and I use a static site generator to convert Markdown to HTML. Weasyprint can handle code highlighting e.g. Using Pygments or another static framework, the only downside is it can't execute JS so if you e.g. Want to dynamically generate content to render you need to first pass your HTML through a headless browser, which is also possible though. There's also... - Source: Hacker News / 6 months ago
View more

What are some alternatives?

When comparing wkhtmltopdf and WeasyPrint, you can also consider the following products

PDF my URL - PDFmyURL turns any webpage or even complete website into PDF. Use our rest API in PHP, .NET, Ruby, Perl or any other programming language. Or convert webpages or even full websites directly in the browser!

DocRaptor - As the only API powered by the Prince HTML-to-PDF engine, DocRaptor provides the best support for complex PDFs with powerful support for headers, page breaks, page numbers, flexbox, watermarks, accessible PDFs, and much more

PDFShift - Convert any HTML documents to high-fidelity PDF using a single POST request

Prince XML - Convert HTML documents to PDF. Beautiful printing with CSS.

Tcpdf - TCPDF: Open Source PHP Class for generating PDF documents

Web2PDF - Easily convert web pages to a PDF using this web-based online tool.