GoPdfSuit v5.0.0: A high-performance PDF engine for Python (now on PyPI)

1 day ago 8

I’m excited to share the v5.0.0 release of GoPdfSuit. While the core engine is powered by Go for performance, this update officially brings it into the Python ecosystem with a dedicated PyPI package.

What My Project Does

GoPdfSuit is a document generation and processing engine designed to replace manual coordinate-based coding (like ReportLab) with a visual, JSON-based workflow. You design your layouts using a React-based UI and then use Python to inject data into those templates.

Key Features in v5.0.0:

Official Python Wrapper: Install via pip install pypdfsuit.

Advanced Redaction: Securely scrub text and links using internal decryption.

Typst Math Support: Render complex formulas using Typst syntax (cleaner than LaTeX) at native speeds.

Enterprise Performance: Optimized hot-paths with a lock-free font registry and pre-resolved caching to eliminate mutex overhead.

Target Audience

This project is intended for production environments where document generation speed and maintainability are critical. It’s ideal for developers who are tired of "guess-and-check" coordinate coding and want a more visual, template-driven approach to PDFs.

It provide the PDF compliance (PDF/UA-2 and PDF/A-4) even if not compliance the performance is just subpar. (You can check the website for performance comparison)

Comparison

Vs. ReportLab: Instead of writing hundreds of lines of Python to position elements, GoPdfSuit uses a visual designer. The engine logic runs in ~60ms, significantly outperforming pure Python solutions for heavy-duty document generation.

How Python is Relevant

Python acts as the orchestration layer. By using the pypdfsuit library, you can interact with the Go-powered binary or containerized service using standard Python objects. You get the developer experience of Python with the performance of a Go backend.

Website - https://chinmay-sawant.github.io/gopdfsuit/

Youtube Demo - https://youtu.be/PAyuag_xPRQ

Source Code:

https://github.com/chinmay-sawant/gopdfsuit

Sample python code

https://github.com/chinmay-sawant/gopdfsuit/tree/master/sampledata/python/amazonReceipt

Documentation - https://chinmay-sawant.github.io/gopdfsuit/#/documentation?item=introduction

PyPI: pip install pypdfsuit

If you find this useful, a Star on GitHub is much appreciated! I'm happy to answer any questions about the architecture or implementation.

submitted by /u/chinmay06 to r/Python
[link] [comments]
Read Entire Article