borb-pdf/borb
borb is a library for reading, creating and manipulating PDF files in python.
📄 borb: Pure-Python PDF creation and manipulation
A practical Python toolkit for building and editing PDFs without leaving your codebase.
borb is a Python library for reading, creating, and manipulating PDF files. Maintained as a solo project, it models PDF files in a JSON-like structure using nested lists, dictionaries, and primitives such as numbers, strings, and booleans. It focuses on common PDF use cases so developers can handle documents in a straightforward way.
✨ Highlights
- Read and write PDFs: Provides a pure Python solution for PDF document management.
- JSON-like document model: Represents PDFs with nested lists, dictionaries, and primitive values.
- Content creation: Supports adding text, images, tables, and lists to documents.
- Page layout control: Includes
PageLayoutoptions such asSingleColumnLayoutfor structured page composition. - Metadata and extraction: Handles PDF metadata management plus text and image extraction.
- Annotations: Lets you add notes and links to PDF content.
- Simple getting started flow: Create a
Document, add aPage, use a layout, append aParagraph, and write output withPDF.write. - Well-tested codebase: README reports 1400+ tests, 100% public method documentation, and 100% type checking.
💡 Why it matters
borb stands out by keeping PDF work inside pure Python while exposing a clear, structured model for documents. Instead of treating PDFs as opaque files, it gives developers building blocks for layout, content, and metadata, which can simplify automation and document generation workflows.
It fits best when you need programmatic PDF generation or manipulation in Python projects, especially for reports, document processing, or content pipelines. Note from the README: borb is dual-licensed under AGPL and a commercial license, so closed-source or paid PDF services may require a commercial license.
#Python #PDF #OpenSource #borb #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
Reverse engineer anything with agents, from app behavior down to native binaries.
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw