Inexpensive ways to add seek to a filetype object
- by becomingGuru
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. PdfFileReader, however uses seek.
What is the simple way to create a PdfFileReader object from a pdf downloaded via url.
Now, what can I do to avoid writing to disk and reading it again via file().
Thanks in advance.