zpdf
A PDF text extraction library written in Zig that focuses on speed and low memory copying. It is at an early alpha stage and is used to pull text out of PDF files.
Share on XLicense: CC0-1.0
Overview
zpdf is a PDF text extraction library written in Zig. It reads files through memory mapping and avoids copying data where possible, and it extracts text in a streaming way with arena allocation. It handles several compression filters and font encodings, parses cross-reference tables and streams, and can read the structure tree of tagged PDFs. The README labels it an early alpha version.
Key features
- Memory-mapped, zero-copy reading where possible
- Supports FlateDecode, ASCII85, ASCIIHex, LZW and RunLength filters
- Handles WinAnsi, MacRoman and ToUnicode font encodings
- Structure tree extraction and Markdown export for structured PDFs
- Strict or permissive error handling
Best for
Zig developers who need fast text extraction from PDFs. It is at an early alpha stage, so expect gaps.
- Upstream
- Lulzx/zpdf
- Fork on GitHub
- Guo-astro/zpdf
- Upstream stars
- 922
- Category
- Documents, media and content
- Language
- Zig
- License
- CC0-1.0
- Forked
- 2025-12-31
- Sync status
- In syncLast synced 2026-09-29
More in Documents, media and content
A Markdown-based typesetting system that turns plain text into papers, presentations, websites, books and knowledge bases. It adds scripting features to Markdown for richer documents.
Forked 2026-09-28Last synced 2026-09-29License: GPL-3.0Documents, media and contentGitHub
A fast library that converts Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF files into clean Markdown. It has Node.js and Python bindings, useful for feeding documents to text tools.
Forked 2026-09-28Last synced 2026-09-29License: MITDocuments, media and contentGitHub
A starter that creates a complete Astro documentation site in your repo as editable files. It is built so both human readers and AI agents can use the docs.
Forked 2026-09-28Last synced 2026-09-29License: MITDocuments, media and contentGitHub
A PowerPoint alternative where a whole slide deck is a single HTML file containing its own viewer, presenter and editor. You can open, edit and present it in any browser.
Forked 2026-09-26Last synced 2026-09-29License: MITDocuments, media and contentGitHub