Print Page | Close Window

Reference to Pages in Catalog points not correct

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: PDF Developers
Forum Description: This conference is for PDF developers.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=4068
Printed Date: 13 Dec 2019 at 3:55am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Reference to Pages in Catalog points not correct
Posted By: spongebob
Subject: Reference to Pages in Catalog points not correct
Date Posted: 07 May 2019 at 6:57am

Dear, Community


I read in my application pdf-files. First I search pdf-object of type „Catalog“. From Catalog I know number of object „Pages“. I go to the object and from entry „Kids“ I know numbers of all objects of type „Page“.


Now I have one pdf-file, which in catalog in entry „Pages“ has not number of object „Pages“, but number of „Page“. Here is part of the file.



20 0 obj

<<

/Type /Catalog

/Pages 22 0 R

/Outlines 4 0 R

/OpenAction 24 0 R

>>

endobj

21 0 obj

<<

/Type /Pages

/Count 1

/Kids [ 22 0 R ]

>>

endobj

22 0 obj

<<

/Type /Page

/Parent 21 0 R

/Resources 2 0 R

/MediaBox [ 0 0 3543 2466 ]

/Contents 1 0 R

>>

endobj

23 0 obj

<<

/S /GoTo

/D [ 22 0 R /Fit ]

>>

endobj

xref

0 24

0000000000 65535 f

0001031115 00000 n

0001031178 00000 n

0000000020 00000 n

0000000200 00000 n

0000000252 00000 n

0000000387 00000 n

0000305005 00000 n

0000305030 00000 n

0000571788 00000 n

0000571813 00000 n

0000737700 00000 n

0000737726 00000 n

0000745631 00000 n

0000745655 00000 n

0000745848 00000 n

0000745871 00000 n

0000748995 00000 n

0000749019 00000 n

0001031089 00000 n

0001031303 00000 n

0001031397 00000 n

0001031465 00000 n

0001031584 00000 n

trailer

<<

/Size 24

/Info 3 0 R

/Root 20 0 R

>>

startxref

1031640

%%EOF





I do not know, wether it correctly and allowed? How can I read and analyze the file?


thanks in advance




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net