Inexpensive was to add seek to a filetype object

Posted by becomingGuru on Stack Overflow See other posts from Stack Overflow or by becomingGuru
Published on 2010-04-16T12:59:42Z Indexed on 2010/04/16 13:03 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

PdfFileReader reads the content from a pdf file to create an object.

I am querying the pdf from a cdn via urllib.urlopen(), this provides me a file like object, which has no seek.

Now, what can I do to avoid writing to disk and reading it again via file().

Thanks in advance.

© Stack Overflow or respective owner

Related posts about python

Related posts about file