I have a directory of PDF files which contain Headings/Sub Headings
and Page Numbers. I wish to write a script to open the PDF, read the
Headings and any sub headings and write them out to a file. I want to
do this to create some meta files (.pdf.desc). Most libraries that
I've seen give the methods to write the headings but not read them.
How can I do this?