page-size

How to get PDF file metadata 'Page Size' using Python?

How to get PDF file metadata 'Page Size' using Python? Question: I try to use PyPDF2 module in Python 3 but I can’t display ‘Page Size’ property. I would like to know what the sheet of paper dimensions were before scanning to PDF file. Something like this: import PyPDF2 pdf=PdfFileReader(“sample.pdf”,”rb”) print(pdf.getNumPages()) But I’m looking for …

Total answers: 2