Software Alternatives & Reviews

Programmatically Rendering PDFs from HTML using Chrome and Puppeteer

wkhtmltopdf puppeteer
  1. wkhtmltopdf is an open source (LGPL) command line tools to render HTML into PDF and various image...
    Pricing:
    • Open Source
    I've used numerous technologies for doing that conversion, including WebSuperGoo's ABCpdf.net, and Rotativa's free library. (We even have an article on how to use it.) The latter is still in use on some of my projects, but it—and its newer .Net Core version—is based on wkhtmltopdf.exe, which is a problem. More about that later.

    #HTML To PDF #PDF Conversion API #PDF Tools 33 social mentions

  2. Puppeteer is a Node library which provides a high-level API to control headless Chrome or Chromium...
    The latest solution I've found is Puppeteer. It's a Node.Js package that manipulates a headless (i.e. No browser window) version of Chrome. Chrome updates frequently, supports good standards, and renders well. The PDF output from Puppeteer matches pretty exactly with the output you would get using Chrome to print to a PDF manually.

    #Automated Testing #Browser Testing #Software Development 102 social mentions

Discuss: Programmatically Rendering PDFs from HTML using Chrome and Puppeteer

Log in or Post with