Skip to main content

2 posts tagged with "generate pdf"

View All Tags

Generate PDF Using PDF-lib in Node.js

· 18 min read
Michał Szymanowski
Michał Szymanowski
PDFBolt Co-Founder

Visual representation of PDF generation with PDF-lib in Node.js

If your Node.js app needs to generate or modify PDFs, pdf-lib is worth a look. It is one of several Node.js PDF libraries, each with different trade-offs. PDF‑lib is a pure JavaScript library for creating and modifying PDF documents. Unlike many alternatives, PDF-lib doesn't rely on native dependencies, making it lightweight and easy to integrate into any Node.js project. This guide covers PDF generation with PDF-lib in Node.js – from basic documents to invoices and forms.

How to Generate PDF in Node.js Using PDFKit

· 13 min read
Michał Szymanowski
Michał Szymanowski
PDFBolt Co-Founder

Generate PDF in Node.js Using PDFKit

PDFKit is a JavaScript library that generates PDF documents programmatically in Node.js. It works without converting HTML – you build documents from scratch using a canvas-like API for vector graphics, text, images, and tables. This guide covers PDFKit setup, text styling, custom fonts, colors, images, tables, invoice generation, Express.js integration, and document security.