Skip to content

fix: decode xref stream filters before parsing entries#123

Merged
Velli20 merged 1 commit intomainfrom
fix-xref-decode
Apr 5, 2026
Merged

fix: decode xref stream filters before parsing entries#123
Velli20 merged 1 commit intomainfrom
fix-xref-decode

Conversation

@Velli20
Copy link
Copy Markdown
Owner

@Velli20 Velli20 commented Apr 5, 2026

XRef streams using /Filter/FlateDecode (with optional /DecodeParms predictors) were read as raw compressed bytes, producing garbage object numbers like 1073152 and triggering
FailedResolveObjectReference errors.

Apply pdf_filter::filter::decode() in parse_xref_stream() so filters and predictors are resolved before the binary xref entries are read.

XRef streams using /Filter/FlateDecode (with optional /DecodeParms
predictors) were read as raw compressed bytes, producing garbage
object numbers like 1073152 and triggering
FailedResolveObjectReference errors.

Apply pdf_filter::filter::decode() in parse_xref_stream() so filters
and predictors are resolved before the binary xref entries are read.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Velli20 Velli20 merged commit ec3c94e into main Apr 5, 2026
4 checks passed
@Velli20 Velli20 deleted the fix-xref-decode branch April 5, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant