Skip to main content

40 posts tagged with "pdf generation"

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.

What is PDF? Technical and Practical Overview

· 9 min read
Milena Szymanowska
Milena Szymanowska
PDFBolt Co-Founder

PDF – Complete Guide to the Portable Document Format

The Portable Document Format – commonly known as PDF – is everywhere: job applications, business proposals, legal contracts, government forms. Since 1993, the format has become the default for sharing documents that need to look the same on every device. But what makes PDF so durable, and why has it stayed relevant for over three decades?

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.

Save Webpage as PDF – PDFBolt Chrome Extension

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

Chrome Extension: Save Webpage as Perfect PDF with PDFBolt – Web to PDF

Need to save a webpage as a PDF without losing the layout? The PDFBolt – Web to PDF Chrome extension converts any webpage to PDF directly from your browser in one click. Pick the page size, set margins, choose between screen and print view, and download or open the result.

Optimizing HTML for Professional PDF Output

· 17 min read
Milena Szymanowska
Milena Szymanowska
PDFBolt Co-Founder

Optimizing HTML for Perfect PDF Conversion

PDF documents preserve formatting across devices, but converting HTML to PDF often produces broken layouts, misplaced page breaks, and missing fonts. This guide covers the CSS print rules, page break controls, and HTML structure patterns that fix those problems.

Top HTML Template Engines for Dynamic PDF Generation

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

HTML to PDF - Template Engines

Building dynamic, data-driven websites means generating HTML from live data. Template engines handle this by combining HTML layouts with variables, loops, and conditionals. This article covers what template engines are, how they work, their benefits, and the most popular options for Node.js, Python, Java, PHP, and Ruby.

Python HTML to PDF with xhtml2pdf: Step-by-Step Guide

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

Python HTML to PDF generation using xhtml2pdf and Jinja2

This guide walks through building a Python HTML to PDF report using xhtml2pdf, Jinja2 templates, and matplotlib charts. By the end, you will have a working script that reads sales data from a JSON file, renders it into styled HTML, and converts it to a PDF ready for distribution or printing.

PDFKit Python: Convert HTML to PDF with wkhtmltopdf

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

Python HTML to PDF conversion using PDFKit and wkhtmltopdf - contract generator example

PDFKit Python is a wrapper for wkhtmltopdf that converts HTML to PDF using the WebKit rendering engine. This guide covers Python HTML to PDF conversion with PDFKit, building a contract generator that produces multi-page documents with headers, footers, and custom styling. The tutorial uses Jinja2 for templating and walks through the full Python PDF generation workflow step by step.

Python HTML to PDF with WeasyPrint and PyPDF2: Full Guide

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

Python HTML to PDF generation using WeasyPrint, PyPDF2, and Jinja2

This guide walks through Python HTML to PDF conversion using three libraries: WeasyPrint, Jinja2, and PyPDF2. Whether you need to generate reports, invoices, or certificates, this approach turns your existing HTML and CSS skills into a Python PDF generation workflow. The tutorial builds a recipe card generator that converts structured JSON data into printable documents.