473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Reading PDF Bookmarks from PHP

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
0 1683

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: NoSpamThankYouMam | last post by:
I am looking for a product that I am not sure exists. I have bookmarks to webpages in Internet Explorer, Mozilla Firefox, Opera, Netscape Navigator, and on a "Favorite Links" page on my website....
2
by: Thomas Anderson | last post by:
I automatically generate several PDF a night from a DB I manage. Below is a snippet of code that just tweakes the registry settings to store path and filename then prints the PDF. Typically a...
0
by: Mark Hayworth | last post by:
In VB6, you could set bookmarks that were in different files/module/classes/documents. When you clicked the flag tool to go to the next bookmark, it would take you there, regardless if that...
3
by: andreas | last post by:
With a vb.net application (vb.net 2003) , I want to make a new word doc where I put several bookmarks and also text in paragraphs following the bookmarks How to do? Thanks for any response
4
by: Viviana Vc | last post by:
Hi all, I used until now Visual Studio 2003 and now I updated to Visual Studio 2005 and I have problems with the bookmarks. 1) until now if you had several bookmarks into one document, with F2...
15
by: Francach | last post by:
Hi, I'm trying to use the Beautiful Soup package to parse through the "bookmarks.html" file which Firefox exports all your bookmarks into. I've been struggling with the documentation trying to...
2
by: Alan T | last post by:
I have two bookmarks, eg. beginMark and endMark I need to get the text between these 2 bookmarks, how do I do that? eg. <beginMark> Hello Word! This is Saturday.
3
by: mbisping | last post by:
Hello, is there a way to create regular non-sidebar bookmarks in Firefox with javascript? If not, why? Is there a workaround - maybe with a plugin? Thanks Meikel
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.