import PyPDF2

minutesFile = open('pdf/meetingminutes.pdf','rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)

# 90도 회전
page = pdfReader.getPage(0)
# page.rotateClockwise(90)
page.rotateClockwise(180)

pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(page)

# resultPdfFile = open('rotate1.pdf', 'wb')
resultPdfFile = open('rotate2.pdf', 'wb')

pdfWriter.write(resultPdfFile)
resultPdfFile.close()

1f36131547a11c738a09e4b383c58fde01fe3d04
<mask token>

<mask token>
page.rotateClockwise(180)
<mask token>
pdfWriter.addPage(page)
<mask token>
pdfWriter.write(resultPdfFile)
resultPdfFile.close()

<mask token>
minutesFile = open('pdf/meetingminutes.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)
page = pdfReader.getPage(0)
page.rotateClockwise(180)
pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(page)
resultPdfFile = open('rotate2.pdf', 'wb')
pdfWriter.write(resultPdfFile)
resultPdfFile.close()

import PyPDF2
minutesFile = open('pdf/meetingminutes.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)
page = pdfReader.getPage(0)
page.rotateClockwise(180)
pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(page)
resultPdfFile = open('rotate2.pdf', 'wb')
pdfWriter.write(resultPdfFile)
resultPdfFile.close()

import PyPDF2

minutesFile = open('pdf/meetingminutes.pdf','rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)

# 90도 회전
page = pdfReader.getPage(0)
# page.rotateClockwise(90)
page.rotateClockwise(180)

pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter.addPage(page)

# resultPdfFile = open('rotate1.pdf', 'wb')
resultPdfFile = open('rotate2.pdf', 'wb')

pdfWriter.write(resultPdfFile)
resultPdfFile.close()
