[reportlab-users] Page numbers of bookmarks
Roberto Alsina
ralsina at netmanagers.com.ar
Mon Sep 1 06:45:30 EDT 2008
On Monday 01 September 2008 03:35:08 Andy Robinson wrote:
> 2008/8/31 Roberto Alsina <ralsina at netmanagers.com.ar>:
> > I don't know if this is possible, but I am trying to produce a book-like
> > table of contents, like this:
> >
> > 1. The first section ..........................1
> > 2. The second.................................14
> >
> > And link each one to the correct place in the document.
> > The hard part is, of course, figuring out the "1" and the "14" :-)
>
> If you can give me a day or two, I am busy producing some updated teaching
> examples (due for PyCON UK next Friday, 12th, but for general release too)
> and will try to make up a good example.
>
> In your architecture, is it easy to make a first pass over the content and
> work out what the section names will be, before the document is rendered?
Yes, that is easy.
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it. --Brian W. Kernighan
More information about the reportlab-users
mailing list