Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.32 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.32 KB

Pinouts Book Cleaner

The Pinouts Book by NODE and Baptiste is an excellent resource with a nice, clean design, but quickly scrolling through it can be headache inducing because of its alternating black-and-white color scheme.

This Python script uses PyMuPDF to invert the colors on the right pages to produce a PDF version with all white or all black backgrounds. The processed version is a little easier on the eyes while scrolling and potentially more printable. :)

Using

First make sure you have PyMuPDF installed (PyPi). Grab a copy of the book from https://pinouts.org. Then clone/download this repository and run the script:

$ git clone https://github.com/nogarcia/pinouts-book-cleaner
$ cd pinouts-book-cleaner
$ pip install -r requirements.txt
$ python clean.py path/to/original-pinouts.pdf path/to/output.pdf
$ python clean.py --dark path/to/original-pinouts.pdf path/to/dark.pdf

License

This repository is licensed under the MIT License, but both the Pinouts Book and the resultant file from this script are licensed CC-BY-SA (no version specified, defer to original authors.)