[Tutor] python help needed

Kent Johnson kent37 at tds.net
Mon Oct 12 14:45:56 CEST 2009

On Mon, Oct 12, 2009 at 2:15 AM, mazher ahmad <mazher_ana66 at hotmail.com> wrote:
> i wana make ToC/headings for any PDF documents ,PDFminer solves the my
> problem if ToC  are given.i came across many files where there
> is no Toc.
> Does any one know ,how to extract ToC/headings from such files.

I guess you will have to construct the ToC from the headings. Does
dumppdf (from PDFminer) show the information you want to collect? If
so, it should give you a starting point for collecting the data.


More information about the Tutor mailing list