[reportlab-users] Problem importing file using PageCatcher

Aaron Watters reportlab-users@reportlab.com
Wed, 11 Dec 2002 15:29:18 -0500

Please forward the


file to me personally (not the user list) if you can.  This may be a 

    -- Aaron Watters

Martin Skøtt wrote:

>Sorry for posting questions on PageCatcher here if its not the appropiate 
>place, but it was the only one I could find.
>I'm trying to load an existing pdf file into a data file using the storeForms
>procedure like this:
>d = pageCatcher.storeForms("s2papir.pdf", "foo.data", prefix="fourpage", 
>all=1, verbose=1)
>But I get this error:
>password is ''
> placing pages [0] from s2papir.pdf into foo.data
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "pageCatcher.py", line 1387, in storeForms
> File "pageCatcher.py", line 610, in parse
> File "pageCatcher.py", line 752, in parse_xref_entries
> File "/usr/lib/python2.1/string.py", line 214, in atoi
>   return _int(s, base)
>  ValueError: invalid literal for int(): f
>Can anyone explain to me what might be wrong with the document? I suspect that
>it might be that a font (helvetica-light) isn't embedded into the document. My
>reason for suspecting this is that I have another file from the same person,
>but with the font embedded and it loads just fine.