Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fdovila/37ecf872b05e6ce8c4080242a4d2f05b to your computer and use it in GitHub Desktop.
Save fdovila/37ecf872b05e6ce8c4080242a4d2f05b to your computer and use it in GitHub Desktop.
#Reflow of any PDF to improve readability on most eBook-readers, using K2pdfopt (www.willus.com/k2pdfopt/) in MAC terminal/commandline/bash, especially useful for multi-column documents (e.g. scientific articles)
#COPY AND PASTE FOR TERMINAL, fill in the paths, filenames on the script:
myuser$ /path...to.../k2pdfopt '/path...to...PDFtoreflow/myPDF.pdf' -x -ui- -dev
# parameters: "-dev" : will fit for average device
# "-ui-" : run programatically (without opening the menu for drag & drop)
# "-x" : exit when done (usually asks for user to press ENTER to close)
#If you want to hear when is done, add:
myuser$ /path...to.../k2pdfopt '/path...to...PDFtoreflow/myPDF.pdf' -x -ui- -dev; afplay /System/Library/Sounds/Submarine.aiff -v 10
#CREDIT: K2pdfopt programmed by willus.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment