By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,161 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

Reading PDF Bookmarks from PHP

P: n/a
I'd like to open an existing PDF and read out the bookmarks present in
the document.

Using PDFLib (http://www.pdflib.com/), I managed to get the page count
out thusly:

$pdf = pdf_new();
pdf_open_file($pdf);
$pdi = pdf_open_pdi($pdf,'x.pdf',NULL,0);
$numPages=pdf_get_pdi_value($pdf,"/Root/Pages/Count",$pdi,0,0);

However, I can't even see an interface for getting the bookmarks out.
I'm not married to PDFLib -- anything will do.

Deane
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.