qmetrics.net

borb

Pure Python library for PDF creation and manipulation

borb screenshot

borb is a Python package to read, write, and edit PDFs using a JSON-like document model, with layout helpers and optional add-ons for OCR, Markdown, and redaction.

Overview

borb is a Python library focused on practical PDF workflows: creating documents, reading existing files, and changing content without hand-writing low-level PDF syntax. Internally it represents PDF structure with nested lists, dictionaries, and primitive values, which keeps generation and manipulation approachable for automation.

Typical capabilities include metadata handling, text and image extraction, annotations, and layout via page layout primitives so paragraphs, tables, lists, and images can be appended in code. It integrates with common Python imaging and plotting stacks when charts or raster assets are needed.

Install is via pip for use inside applications and scripts. Optional add-ons extend the core with find-and-replace, Markdown-to-PDF conversion, OCR for scanned pages, and standards-oriented redaction using PDF redact annotations and rule-driven classifiers.

Licensing is dual AGPL plus a commercial option when closed-source distribution or paid PDF services apply; users should evaluate licence terms for their deployment model.

Key features

  • Read, write, and manipulate PDFs in Python
  • PageLayout for text, tables, and images
  • Metadata read and edit
  • Text and image extraction
  • PDF annotations
  • Matplotlib and PIL compatibility
  • Optional Markdown, OCR, redaction add-ons
  • pip-installable package

Use cases

  • Automated invoice and report PDFs
  • Contract and document generation
  • Batch PDF content updates
  • Documentation pipelines from Markdown

Tags

Similar software

Stirling PDF

Self-hostable open-source PDF editing platform

An open-source PDF platform for editing, signing, converting, and automating documents in the browser, on desktop, or on your own servers with a private API.

★ 97.6k⟳ todayMIT · open core
Open Source Alternative to:Adobe AcrobatFoxit PDF Editor

MinerU

Document parser for Markdown and structured agent output

MinerU converts PDFs, images, and office documents into Markdown and structured JSON for apps, agents, and local workflows.

★ 84.4k⟳ 10 days agoApache-2.0

Paperless-ngx

Community-supported document management system for archiving scanned documents

Paperless-ngx turns physical documents into a searchable online archive. It is deployed with Docker Compose and is the official successor to Paperless and Paperless-ng.

★ 48.7k⟳ yesterdayGPL-3.0

Marker

Document to markdown and JSON conversion toolkit

Marker converts PDFs, images, and Office files into markdown, JSON, chunks, or HTML with layout, tables, math, and optional LLM-assisted cleanup. It runs on GPU, CPU, or Apple MPS via CLI modes.

★ 41.1k⟳ 8 days agoApache-2.0

OCRmyPDF

Command-line OCR text layer for scanned PDFs

OCRmyPDF adds a searchable text layer under scanned PDF images using Tesseract, keeping layout friendly for copy and paste while optimizing file size.

★ 35.4k⟳ yesterdayMPL-2.0

jsPDF

Client-side JavaScript library for generating PDF documents

jsPDF builds PDF files in the browser or in Node.js without a server round trip. It supports pages, fonts, UTF-8 via custom fonts, and optional HTML rendering.

★ 31.3k⟳ 2 months agoMIT