I want to read a PDF file and get a list of its pages and the size of each page. I do not need to manipulate it in any way, just read it.
He is currently trying to use pyPdf, and he is doing everything I need, except for the way to get the page sizes. Understanding that I will probably have to iterate over, since page sizes can vary in a pdf document. Is there any other libray / method that I can use?
I tried using PIL, some online recipes even had the use of d = Image (imagefilename), but it NEVER reads any of my PDF files - it reads everything else that I throw at it - even some things that I did not know PIL could do.
Any guidance is appreciated - I'm on Windows 7 64, python25 (because I'm doing GAE stuff too), but I'm happy to do this on Linux or more modern pythia.
Bif
source share