jhove
jhove copied to clipboard
PDF module "Problem with page label structure" - offset does not point to page label structure
I recently encountered a PDF with a "Problem with page label structure" error message. When looking at the offset reported, it is located nowhere near the page label structure - it's actually located after an endobj command between an obj containing a FontDescriptor and an object containing a stream. I find this confusing - the location may have made sense to me if close to a page object, but this is not the case. Futhermore, the PageLabel structure looks fine. Unfortunately, I cannot share the document publicly. Is there an option to get more information on when the page label structure error is reported?
As additional information, I'm including the PageLabel section here. I've migrated the object into different PDF versions and will include all versions of the PageLabel sections which caused problems. Each PDF only had 1 PageLabel entry.
example1
1 0 obj <</Type /Catalog /Pages 3 0 R /PageLabels<< /Nums [19 << /S /D
]
/Metadata 879 0 R
endobj ################
example2
1220 0 obj <</Metadata 614 0 R/Outlines 1215 0 R/OutputIntents 1217 0 R/PageLabels<</Nums[19<</S/D>>]>>/Pages 1216 0 R/Type/Catalog>> endobj ################
example 3
1190 0 obj <</Metadata 453 0 R/PageLabels<</Nums[19<</S/D>>]>>/Pages 1187 0 R/Type/Catalog>> endobj ################
Any news on this? The error keeps on popping up as a false positve. Just had another one of the following pageLabel structure in the Catalog dictionary:
/PageLabels << /Nums [ 2 << /S /r >> 20 << /S /D >> ] >>
it's been over 5 years since I've opened this issue and the problem still keeps on popping up. The most recent /PageLables looked like this:
<< /Nums [ 2 << /S /D >> 3 << /S /D >> ] >>
I can't spot what is supposed to be wrong with this.