Created
November 22, 2011 06:08
-
-
Save ivalkeen/1385019 to your computer and use it in GitHub Desktop.
Shell: Convert colorful PDF to black-text DJVU to increase readability on monochrome readers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cut page 23 from pdf | |
pdftk smashing_css.pdf cat 23 output sheet.pdf | |
# crop margins | |
pdfcrop --margins '-50 -100 -100 30' sheet.pdf sheet1.pdf | |
# convert to monochrome (text) djvu | |
pdf2djvu -o file.djvu --fg-colors=black --anti-alias --dpi=600 file.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment