k2pdfopt One-liner
K2pdfopt saves kindle paperwhite with better formatted pdf after conversion, without jailbreak.
TLDR
./k2pdfopt -as -dev kp2 -jpg 90 -mode fw [filename]
[press ENTER and wait]
Explain params:
- -as: Autostraighten skewed pages(no need for text pdf)
- -dev kp2: device is kindle paperwhite 2
- -jpg 90: compress output file
- -mode fw: fit width
Optional Options
- -n: disables text reflow, good for lame pdf reader like
Preview.app
, not for mobile devices. Smaller output size because “the source PDF’s native content is used along with additional PDF instructions to translate, scale, and crop the source content”.