Bug? TOC is not shown (error) when using a pdf file as background-image.

60 views
Skip to first unread message

digger

unread,
Jul 30, 2011, 4:08:36 AM7/30/11
to Pisa XHTML2PDF Support
Hello,

when I use background-image like this (in .css file)

@page {
background-image: url({{ MEDIA_URL }}img/background.pdf);
}

It works until I decide to show TOC by inserting this code in
the .html file:

<pdf:toc />

The final part of the exception in console is:

pyPdf/pdf.py", line 451, in getPage
return self.flattenedPages[pageNumber]
IndexError: list index out of range

Seems like a bug.

YongTai Liang

unread,
May 23, 2012, 1:34:32 AM5/23/12
to xhtm...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages