View Single Post
Old 02-29-2020, 07:00 PM   #19
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by willus View Post
... There are other options that are better if you prefer to have a 1-to-1 source page to converted page correlation. The k2pdfopt options are documented here.
I am realizing that in the original post for this thread, there were two different versions of the PDF--the black and white one (which I processed with my original post in this thread), and the yellowed version. To process the yellowed version, I needed to jack up the contrast quite a bit. I've tweaked this set of options to give one output page per input page--simply cropping each input page:

k2pdfopt -mode tm -c- -rt 0 -cmax -8 -bpc 2 -n- -dr 2 -ac yellowed.pdf -o processed.pdf

The "-mode tm" does the one page per page bit. "-cmax -8" to use a fixed contrast adjust on each page (the default auto adjust isn't aggressive enough for this document--you could probably stand to go even higher than 8). The "-dr 2" bumps up the output resolution by a factor of two over what it would normally be for a Kindle Paperwhite. Example input and output attached.
Attached Files
File Type: pdf yellowed.pdf (421.1 KB, 449 views)
File Type: pdf processed.pdf (1.11 MB, 483 views)

Last edited by willus; 02-29-2020 at 07:11 PM.
willus is offline   Reply With Quote