Skip to content

v0.1.0 — standalone module + ASCII85 decoder fix

Choose a tag to compare

@chappihappymeal chappihappymeal released this 24 Aug 11:35
· 19 commits to master since this release

First tagged release of the maintained continuation of ledongthuc/pdf (rsc/pdf lineage).

Highlights

  • Importable as a standalone module: github.com/chappihappymeal/pdf — no fork or replace directive needed. Upstream has no tags at all, so this is also the first semver release in the lineage.
  • ASCII85 decoder fixed: the sanitizing reader used to strip the z zero-group shorthand (silently dropping 4 bytes per group — corrupt output, unexpected EOF from a chained FlateDecode filter, and a panic escaping Page.Content()), and never signalled io.EOF at the ~> end-of-data marker. Reported upstream as ledongthuc/pdf#83 with fix offered as ledongthuc/pdf#84.
  • Tests: 6 unit tests plus integration tests with synthetic reproduction PDFs in testdata/, validated against poppler's pdftotext and Python's base64.a85decode.

Install

go get github.com/chappihappymeal/pdf@v0.1.0

What's next

Triage and absorption of upstream's open bug-fix PRs (hangs, OOMs, truncated-input handling) with original authorship preserved — coming in v0.2.0.