To get started:
$ pip install PyMuPDF
To rotate python_cheat_sheet.pdf
90 degrees clockwise:
$ python rotating_pdf.py python_cheat_sheet.pdf 90
A new PDF file named python_cheat_sheet_rotated90.pdf
will be created in the same directory as python_cheat_sheet.pdf
.
To rotate python_cheat_sheet_rotated90.pdf
90 degrees counter-clockwise:
$ python rotating_pdf.py python_cheat_sheet_rotated90.pdf -90