pdftract/crates
jedarden caf6fecda5 feat(pdftract-1bb17): implement RunLengthDecode filter
Implements RunLengthDecode filter per PDF spec 7.4.5:
- 0-127: copy next (len+1) bytes literally
- 128: end-of-data marker
- 129-255: repeat next byte (257-len) times

The implementation:
- Handles truncated input gracefully per INV-8 (partial bytes returned)
- Enforces decompression bomb limits
- Includes comprehensive test coverage for all acceptance criteria

Acceptance criteria PASS:
- Literal copy: [3, A, B, C, D] -> [A,B,C,D]
- Repeat: [254, A] -> [A,A,A] (3 times)
- EOD: [128, ...] stops at 128
- Truncated input: [5, A, B] -> [A,B] (partial)
- Bomb limit enforced
- Empty input handled

Closes: pdftract-1bb17
2026-05-25 00:53:53 -04:00
..
pdftract-cer-diff docs(pdftract-aawrz): add LICENSE-MIT and LICENSE-APACHE files 2026-05-23 10:36:28 -04:00
pdftract-cli feat(pdftract-5pbkp): implement inspect subcommand with clap parsing and axum server 2026-05-24 17:13:05 -04:00
pdftract-core feat(pdftract-1bb17): implement RunLengthDecode filter 2026-05-25 00:53:53 -04:00
pdftract-libpdftract feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
pdftract-py feat(pdftract-2nu0s): implement Python SDK contract conformance 2026-05-24 08:55:11 -04:00