pdftract/crates/pdftract-core/src/decoder/mod.rs
jedarden b8a1b8f193
Some checks are pending
Schema Generation Validation / Validate JSON Schema (push) Waiting to run
Schema Generation Validation / Validate JSON Syntax (push) Waiting to run
fix(pdftract-2sswr): add Default impl for PageDict to fix JBIG2 compilation
This commit fixes a compilation error in the javascript tests that were
using PageDict::default(). The JBIG2 decoder module was already fully
implemented; this change only enables the tests to compile and run.

Changes:
- Add Default impl for PageDict in parser/pages.rs
- Verify all 11 JBIG2-related tests pass

The JBIG2Decode passthrough filter implementation is complete:
- Passthrough of raw JBIG2 bytes
- /JBIG2Globals reference recording for downstream consumers
- OCR_JBIG2_UNSUPPORTED diagnostic emission when full-render disabled

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-05-28 04:44:45 -04:00

9 lines
276 B
Rust

//! PDF stream decoders for filter processing.
//!
//! This module provides specialized decoders for PDF stream filters that
//! require metadata extraction or diagnostic emission beyond simple
//! passthrough.
pub mod jbig2;
pub use jbig2::{Jbig2Decoder, Jbig2GlobalsRef};