py2pdf --> can't get thisPageRef -- not declared inPage ??? HELP!

rayleyva at my-deja.com rayleyva at my-deja.com
Fri May 12 00:41:53 EDT 2000


Any help in getting this to work would be appreciated.  I've installed
the Reportlab, and all the tests come back positive.  Not much in the
manuals, but hey if it works who needs da stinkin' manuals ?!? <grin>

TIA

Ray

PS : Here's a quick capture of the DOS screen.

Traceback (innermost last):

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1546, in ?
    main(sys.argv)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1531, in main
    p.process(f)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1397, in process
    self.writeFile(self.taggedData, inPath, outPath)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1206, in writeFile
    self.writeData(data, inPath, outPath or self.outPath)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1385, in writeData
    self.formatLine(line)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1294, in formatLine
    method(groups, eol)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1348, in _formatKw
    self.formatLine(after, eol)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1294, in formatLine
    method(groups, eol)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1303, in
_formatIdent
    self.layouter.addIdent(id)

  File "c:\apps\inet\python\py2pdf\py2pdf.py", line 1019, in addIdent
    c.bookmarkHorizontalAbsolute0(nameTag, pos)

  File "C:\Apps\inet\Python\reportlab\pdfgen\canvas.py", line 362, in
bookmarkHorizontalAbsolute0

    pageref = self._doc.thisPageRef()

  File "C:\Apps\inet\Python\reportlab\pdfbase\pdfdoc.py", line 333, in
thisPageRef

    raise ValueError, "can't get thisPageRef -- not declared inPage"

ValueError: can't get thisPageRef -- not declared inPage


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list