RepositoryPython
borb-pdf

borb-pdf/borb

borb is a library for reading, creating and manipulating PDF files in python.

3.6ksao
160fork
7issue
2lượt xem

📄 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 PageLayout options such as SingleColumnLayout for 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 a Page, use a layout, append a Paragraph, and write output with PDF.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.

RepositoryPython
opendatalab/MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

84.1k
Nov 22, 2026
RepositoryJavaScript
alam00000/bentopdf

The Privacy First PDF Toolkit

16.4k
Nov 22, 2026
RepositoryC#
wmjordan/PDFPatcher

PDF补丁丁——PDF工具箱,可以编辑书签、剪裁旋转页面、解除限制、提取或合并文档,探查文档结构,提取图片、转成图片等等

12.8k
Nov 5, 2026
RepositoryPython
datalab-to/marker

Convert PDF to markdown + JSON quickly with high accuracy

41.0k
Nov 20, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

210.2k
Nov 23, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

190.8k
Oct 31, 2026
Repository
justjavac/free-programming-books-zh_CN

:books: 免费的计算机编程类中文书籍,欢迎投稿

119.7k
Jul 29, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

475.2k
Nov 23, 2026
RepositoryPython
Asabeneh/30-Days-Of-Python

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

79.3k
Sep 30, 2026