Git Product home page Git Product logo

rotate_pdf's Introduction

rotate_pdf

A small python program to rotate pdf pages.

How to Use

Setup (using Python script)

You will need Python installed with tkinter. And an additional dependency PyPDF2.

Setup (using exe)

Download rotate_pdf_exe.zip and extract.

Run the Program

To run the Python script:

python rotate_pdf.py

Or, double click rotate_pdf.exe after unzipping.

Select the pdf that needs pages rotated. You will then be asked which pages you would like rotated.

List or range of pages to rotate (e.g. 3 4 5 or 3-5)

Enter a space separated list of pages and/or page ranges that you would like rotated. A page listed once will be rotated clockwise by 90°. A page listed twice will be rotated by 90° twice (180°) and so on.

For example, all of the following will rotate even numbered pages from 1-10 clockwise by 90° and odd numbered pages by 180° while leaving all pages after 10 oriented the same.

1 1 2 3 3 4 5 5 6 7 7 8 9 9 10
1-10 1 3 5 7 9
1 3 5 7 9 1-5 6-10
1 3 1-5 7 9 5-10 11 11 11 11

If example.pdf was chosen, a new file example - rotated.pdf will be written to the original pdf's directory with the specified pages rotated. Note that this will overwrite any existing file named example - rotated.pdf if one already exists at that location.

rotate_pdf's People

Contributors

glukemh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.