No TOC

47 views
Skip to first unread message

wikilee

unread,
Apr 18, 2012, 3:28:02 PM4/18/12
to mwlib
Hello again....

I have very nice PDF files being build with more than 1 article in the
PDF without a TOC being generated.

I have looked at the pdfstyles.py file and 'render_toc = True' is set.

Here is what we used to install mwlib:

pip install -i http://pypi.pediapress.com/simple/ pil
pip install -i http://pypi.pediapress.com/simple/ mwlib
pip install -i http://pypi.pediapress.com/simple/ mwlib.rl

Is there something I am missing to get the TOC to generate?

I am using MediaWiki 1.18.X

Thank you again.

Volker Haas

unread,
May 3, 2012, 3:50:07 AM5/3/12
to mw...@googlegroups.com
Hi,

you also need to install pdftk.

Regards,
Volker


--
Volker Haas
Senior Developer
brainbot technologies ag
Boppstra�e 64
55118 Mainz
Phone: +49 (0)6131 2116394

Andrew

unread,
May 3, 2012, 4:01:40 AM5/3/12
to mw...@googlegroups.com
I have tried pdftk earlier.
It does not generate TOC with links and it breaks bookmarks.
May be something was changed recently.

Volker Haas

unread,
May 3, 2012, 4:08:55 AM5/3/12
to mw...@googlegroups.com
Am 03.05.2012 10:01, schrieb Andrew:
> I have tried pdftk earlier.
> It does not generate TOC with links and it breaks bookmarks.
Unfortunately this is still true. The TOC breaks all bookmarks inside
the PDF.

Andrew

unread,
May 3, 2012, 4:15:32 AM5/3/12
to mw...@googlegroups.com
If you familiar with python you can little change mwlib.rl added
TableOfContents flowable.
See here
http://www.reportlab.com/docs/reportlab-userguide.pdf

But I have gotten fatal errors with it on large documents.

Reply all
Reply to author
Forward
0 new messages