Skip to content
Discussion options

You must be logged in to vote

There are currently low level ways to do this: The Catalog sometimes contains a dictionary key for "Outlines", which contains the information you're looking for. You can retrieve the catalog by calling:

$catalog = $document->getCatalog();

And then you can get the outlines dictionary from that:

$outlinesReference = $catalog->getDictionary()->getValueForKey(DictionaryKey::OUTLINES, ReferenceValue::class);
if ($outlinesReference !== null) {
    $outlinesDictionary = $document->getObject($outlinesReference->objectNumber, GenericObject::class)->getDictionary();
}

That has a bunch of references to the (The first, last keys reference an object, and count indicates the number of objects). In th…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by PrinsFrank
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants