Skip to main content
Participating Frequently
Apr 1, 2021 7:12 PM UTC
Question

Cross Reference Stream Enumeration

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 is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Legend
    Apr 5, 2021 10:03 PM UTC

    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. 

    Translate
    John T Smith
    Community Expert
    Community Expert
    Apr 1, 2021 7:26 PM UTC

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

    Translate
    VS_NoviceAuthor
    Participating Frequently
    Apr 5, 2021 7:17 PM UTC

    I am using PDF Library SDK.

    Translate