pdf library.

Piet van Oostrum piet at cs.uu.nl
Tue Jan 1 06:28:29 EST 2008


>>>>> Shriphani <shriphanip at gmail.com> (S) wrote:

>S> I tried pyPdf for this and decided to get the pagelinks. The trouble
>S> is that I don't know how to determine whether a particular page is the
>S> first page of a chapter. Can someone tell me how to do this ?

AFAIK PDF doesn't have the concept of "Chapter". If the document has an
outline, you could try to use the first level of that hierarchy as the
chapter starting points. But you don't have a guarantee that they really
are chapters.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list