I have to retrieve the outline (or bookmarks) from a pdf file through PHP with or without a library. As a result, I need to have the name of the bookmark, the page (which the bookmark is contain) and the level (1,2,3).
I've tried to get the structure with the PHPParse Library ($pdf->getObjects()) from this post, but I'm not able to retrieve the bookmarks.