Skip to main content
Participating Frequently
April 1, 2021
Question

Cross Reference Stream Enumeration

  • April 1, 2021
  • 2 replies
  • 740 views

Using APDFL SDK C++ I am trying to enumerate all the indirect regular and compressed object in cross-reference table/stream.
I am using COSDOCEnumIndirect to fetch XRef object and then I use ASStmRead to decode the XRef  object's CosStream. But not sure how to individually enumerate each object in Cross-reference stream.

Any leads would be really helpful.

Thanks.

    This topic has been closed for replies.

    2 replies

    Legend
    April 5, 2021

    This isn't the place for PDFLIB support, you may need to use your datalogics support contract. However... the same API exists in Acrobat so I guess it's ok to answer. CosObjEnumIndirect visits the whole document, including all xref streams. There is no need to direct it to read them. 

    John T Smith
    Community Expert
    Community Expert
    April 1, 2021

    Please post the exact name of the Adobe program you use so a Moderator may move this message to that forum

    VS_NoviceAuthor
    Participating Frequently
    April 5, 2021

    I am using PDF Library SDK.