View Single Post
Join Date: Jan 2009
Posts: 4
Reputation: noamjob is an unknown quantity at this point 
Solved Threads: 0
noamjob noamjob is offline Offline
Newbie Poster

How can I read a pdf web page?

 
0
  #1
Jan 11th, 2009
I'm trying to get the content of a web page that is written in pdf format.
The following code worked very well for me when I tried to read a regular web page, but it prints all kinds of weird letters when I try it on a pdf page like this one:

url='http://fetac.ie/MODULES/D20120.pdf'
content=urllib2.urlopen(url).read()
print content

Any suggestion? (a brief code example will be great, thanks!)
Reply With Quote