I have two pdfs that spit out the error message below when using poppler utils. pdftk also couldn't open them. Mac Preview can open and display them. pdftoppm E1_Galerieebene_20130717.pdf Syntax Error: Page count in top-level pages object is wrong type (null) Wrong page range given: the first page (1) can not be after the last page (0). pdftoppm U2_Tiefgaragenebene_20130717_\(1\).pdf Syntax Error: Page count in top-level pages object is wrong type (null) Wrong page range given: the first page (1) can not be after the last page (0). I can send a drop box link to these pdfs. Is this a poppler fix or is there something wrong with the pdf?
Oh yeah, tried 0.28.1 and 0.30.0
Attach the files.
Can I send you a dropbox link in email? They are a little sensitive.
You can, i can't promise i will have a look, that's why adding them here makes them visible to more people and thus more chances to get it fixed.
The document is broken but since gs and Adobe Reader render it and it's not hard to fix i'll fix it.
Created attachment 111934 [details] [review] Patch Fellow Poppler devels, a review? The problem with these files is that the catalog links directly to a page, i.e. 70 0 obj << /Type /Catalog /Pages 72 0 R /Outlines 4 0 R /OpenAction 74 0 R >> endobj 72 0 obj << /Type /Page /Parent 71 0 R /Resources 2 0 R /MediaBox [ 0 0 3370 2384 ] /Contents 1 0 R >> So what i'm doing is if Catalog::Pages is a Page instead of a Pages i assume there's just a Page and carry on. Render and okular work Shall i commit
(In reply to Albert Astals Cid from comment #6) > Created attachment 111934 [details] [review] [review] > Patch > > Fellow Poppler devels, a review? > > The problem with these files is that the catalog links directly to a page, > i.e. > > 70 0 obj > << > /Type /Catalog > /Pages 72 0 R > /Outlines 4 0 R > /OpenAction 74 0 R > >> > endobj > 72 0 obj > << > /Type /Page > /Parent 71 0 R > /Resources 2 0 R > /MediaBox [ 0 0 3370 2384 ] > /Contents 1 0 R > >> > > So what i'm doing is if Catalog::Pages is a Page instead of a Pages i assume > there's just a Page and carry on. Render and okular work > > Shall i commit LGTM
Pushed
Thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.