Giter VIP home page Giter VIP logo

pocketmod-creator's Introduction

PocketMod Creator

Python script to convert a PDF into a PocketMod PDF.

usage example

What is a PocketMod?

See pocketmod.com or search online for "PocketMod" for more information.

Searching online for "pocket mod" (two words) will bring up information about an electric scooter - this script will not create an electric scooter!

Installation

Clone or download this repository.

How to use

Requirements

Before running this script you will need to have installed:

PyPDF2 can be installed via pip with:

$ pip install PyPDF2

If you get an ImportError for PyDF2 when running the code make sure that you have installed PyPDF2 into the correct version of Python (if you have multiple versions installed on your machine) and that you are executing the correct version of Python. See issue #1.

Running the script

Go to the directory where the pocketmod_creator.py script is located. Open the terminal and type the following where input.pdf is the PDF you want converted.

$ python pocketmod_creator.py input.pdf

The script will generate and output a time-stamped PDF in the current directory:

$ ls
input.pdf  output_20200408112034.pdf  pocketmod_creator.py

If input.pdf is in another directory then it can referenced as below. However, the output PDF will still be in the directory of the pocketmod_creator.py script.

$ python pocketmod_creator.py some/other/location/input.pdf

Currently this script assumes the input file is an A4 size PDF, and it will generate an A4 size PDF as output.

Contact

Email : [email protected]

Repo : https://github.com/mullinscr/pocket-mod

Contribute

Create an issue and let me know of any additions or features you would like. Or fork the repo and send me a pull request.

License

This project is licensed under the MIT license - see LICENSE.txt.

TODO

  • Allow more flexibility with input and output paper sizes (A3, US letter etc.)
  • Add another CLI argument for naming the output file.
  • Allow for multiple input files.

pocketmod-creator's People

Contributors

mullinscr 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.