Best approach to generate PDF from dynamic data?

This page summarizes the projects mentioned and recommended in the original post on /r/node

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • puppeteer

    Node.js API for Chrome

  • I have used https://pptr.dev/ in one of my Projects. I have created the page via HTML/CSS and used Puppeter to convert this page in a PDF. The nice thing here is that you can use HTML and CSS and do not need to use coordinates to place content on the page, which is in some alternatives needed

  • pandoc

    Universal markup converter

  • Pandoc is a possible middle man to convert most types of documents into other types of documents, including PDF. Although I suspect it could use LaTeX here as an intermediary language. This might be a bit much, I'd suggest trying other solutions first and mark Pandoc down as your plan C.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • PDFKit

    A JavaScript PDF generation library for Node and the browser

  • If this is a concern for you, I suggest you look at projects like pdfkit, they allow you to compose the content of the pdf directly, without using another format (html) has an intermediate layer.

  • gotenberg

    A developer-friendly API for converting numerous document formats into PDF files, and more!

  • I asked the very same question a few months ago and someone suggested https://gotenberg.dev/. We've been using it ever since with absolutely no issues.

  • react-pdf

    📄 Create PDF files using React

  • See if React PDF library solves your problem.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
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