pdfbox
Version, currently main branch1 version
- main branchlatestNov 8, 2026
github.com/dsisnero/pdfbox
No description declared in shard.yml.
Installation
# Add this to your shard.yml
dependencies:
pdfbox:
github: dsisnero/pdfbox
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.19.1- License
- MIT
- Author
- your-name-here <your-email-here>
Dependencies
Runtime Dependencies
Development Dependencies
- ameba*github: crystal-ameba/amebadev
README
PDFBox Crystal
A Crystal language port of Apache PDFBox, the Java library for creating, reading, and modifying PDF documents.
What it is
pdfbox brings PDFBox's capabilities to Crystal:
- create new PDF documents;
- manipulate existing PDF documents;
- extract text and content from PDF documents.
This is an active porting project. It tracks the Java behavior class by
class, with upstream tests ported first; coverage is recorded per symbol in
plans/inventory/ and summarized in plans/parity.md.
Installation
-
Add the dependency to your
shard.yml:dependencies: pdfbox: github: dsisnero/pdfbox -
Run
shards install.
Usage
require "pdfbox"
# Load a document and extract its text.
document = Pdfbox::Loader.load_pdf("input.pdf")
puts Pdfbox::Text::PDFTextStripper.new.get_text(document)
document.close
The API mirrors the Java class names where Crystal allows it (e.g.
Loader, Pdmodel::Document, Pdmodel::PDPage,
Text::PDFTextStripper), so the
Java API documentation is a
usable companion reference.
Documentation
| Doc | Purpose |
|---|---|
| docs/architecture.md | High-level structure and source-of-truth boundaries |
| docs/development.md | Local workflow, setup, upstream/vendor notes, temp-file conventions |
| docs/coding-guidelines.md | Porting rules and Crystal-specific expectations |
| docs/testing.md | Test-first parity workflow and quality gates |
| docs/pr-workflow.md | Commit, push, and review expectations |
| docs/resuming.md | How a new session resumes work |
Development
make submodule-init # check out the vendored Apache PDFBox source
make install # shards install
make quality # format, lint, and test gates
make help lists every target. See docs/development.md
for the pinned upstream source and the local loop, and
docs/testing.md for the parity test workflow and what each
gate checks.
Contributing
- Fork it (https://github.com/dsisnero/pdfbox/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Run
make quality - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
License
This project is licensed under the MIT License — see the LICENSE file.
Apache PDFBox itself is licensed under the Apache License 2.0. See docs/development.md for how its vendored source is checked out and pinned.
Contributors
- dsisnero — creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Nov 8, 2026
- Crystal
>= 1.19.1- Indexed
- yes
Dependents
Repository
github.com/dsisnero/pdfbox
Metadata
- Created
- Aug 19, 2026
- Updated
- Nov 12, 2026
- Synced
- Nov 12, 2026
- Versions
- 1