Skip to main content

2 posts tagged with "expressjs"

View All Tags

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.

Generate PDF with PDFMake in Node.js: Full Guide

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

Node.js PDF generation using PDFMake - professional document examples created with JavaScript

Many server-side applications need to generate PDFs – invoices, reports, statements, certificates. PDFMake is one of the most popular Node.js PDF generation libraries: it works without native dependencies, uses a declarative JSON syntax for document definitions, and runs in both browser and server environments.

This guide covers PDFMake setup in Node.js, document structure, tables, images, watermarks, Express.js integration, and a full invoice example.