-
-
Notifications
You must be signed in to change notification settings - Fork 579
Closed
Labels
Description
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. (
pdfcpu/pkg/pdfcpu/validate/nameTree.go
Line 651 in ce09a83
| 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.