How can I rotate a page in pyPDF2?
问题 I'm editing a PDF file with pyPDF2. I managed to generate the PDF I want but I've yet to rotate some pages. I went to the documentation and found two methods: rotateClockwise and rotateCounterClockwise , and while they say the parameter is an int , I can't make it work. Python says: TypeError: unsupported operand type(s) for +: 'IndirectObject' and 'int' To produce this error: page = input1.getPage(i) page.rotateCounterClockwise(90) output.addPage(page) I can't find someone explaining the