Skip to main content

6 posts tagged with "Python"

View All Tags

Top HTML Template Engines

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

HTML to PDF - Template Engines

In the world of modern web development, creating dynamic, data-driven websites efficiently is a constant challenge. Template engines have emerged as a crucial tool in a developer's toolkit, streamlining the process of generating HTML content dynamically. This article explores what template engines are, how they work, their benefits, and the most popular options available today.

Convert HTML to PDF in Python Using xhtml2pdf

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

Illustration of generating PDF files using xhtml2pdf and Jinja2 in Python

Are you looking to convert HTML content into polished PDF reports using Python? You've come to the right place! This comprehensive guide will walk you through the entire process of creating professional PDFs from HTML using the powerful Python library — xhtml2pdf. By leveraging the flexibility of HTML/CSS for design and Python's robust libraries for processing, you can create beautiful, data-driven documents that are ready for distribution or printing.

How to Convert HTML to PDF Using Python-PDFKit

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

Illustration of generating PDF files using Python-PDFKit and Jinja2

With the rising demand for automated document generation, developers need reliable tools to create professional PDFs programmatically. Enter PDFKit — a powerful Python wrapper for wkhtmltopdf that transforms well-structured HTML into polished PDF documents. In this guide, we'll walk through a practical implementation, showing you how to leverage this library to create dynamic, multi-page contracts that look truly professional.

Generate PDF from HTML Using WeasyPrint and PyPDF2

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

Illustration of generating PDF files using WeasyPrint, PyPDF2 and Jinja2

In this detailed guide, we'll show you how to create PDF from HTML using a powerful combination of three Python libraries: WeasyPrint, Jinja2, and PyPDF2. Whether you need to generate reports, invoices, certificates, or personalized documents, this approach allows you to leverage your web design skills to produce professional-quality PDF. We'll build a practical recipe card generator that demonstrates how to transform structured data into eye-catching, printable documents.

Top Python HTML to PDF Libraries in 2025

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

Google Trends overview showing the relative search interest for HTML-to-PDF conversion libraries over the past 12 months

In this article, we present the top Python libraries for converting HTML to PDF based on their popularity. We explore their unique features and benefits, provide detailed download statistics and simple code examples to give you insights into their real-world usage. This data-driven approach helps you understand which libraries are widely trusted by the developer community, so you can choose the perfect tool for your projects.

Generate PDFs in Python Using Pyppeteer

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

Illustration of generating PDF files using Pyppeteer

In this comprehensive guide, we'll show you how to create a dynamic certificate PDF using Pyppeteer and Mako templates for HTML population. As demand for professional certificate generation grows — whether for online courses, digital awards, or corporate recognition — this step-by-step tutorial is designed to help you transform your HTML content into high-quality PDFs effortlessly. Discover how Pyppeteer's headless browser capabilities, paired with the flexibility of Mako's templating engine, can streamline your certificate PDF generation process and meet modern web standards.