Skip to content

validateArrayEntry: dict=nameTreeDict entry=Limits invalid dict entry #1111

@xytis

Description

@xytis

A concatenated PDF originating from a government institution caused this error.

Seemingly, the root cause is:

    9: was compressed 61[7] generation=0 types.Dict
<<
        <Kids, []>
        <Limits, []>
>>

According to the code, Limits must be of size 2. (

a, err := validateStringArrayEntry(xRefTable, d, "nameTreeDict", "Limits", REQUIRED, model.V10, func(a types.Array) bool { return len(a) == 2 })
)

Attaching the crash log here, I am unable to share the originating document.
crash-sensitive.log

While trying to replicate the issue with a mock document, I've stumbled on another seemingly unrelated issue:

removeEmptyContentStreams: obj#:7 page content entry neither stream dict nor array.

Attaching both crash log and the mock document.

crash.log
Merge.pdf

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions