View Single Post
Old 12-29-2016, 11:59 PM   #1332
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,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by killout View Post
Hello, Willus.
I'm trying to achieve the following:
Take A4 pdf, remove margins, and slice it to make height and witdth of the page exactly as ipad air 2 screen in landscape mode.
I spent several hours playing with options, but it doesn't work as expected. For some reason output pdf is not fitting ipad screen, and have some random page size.
I'm trying:
./k2pdfopt -n -wrap- -col 1 -vb -1 -t -h 1536 -w 2048 -dpi 264 file.pdf
k2pdfopt v2.36 (w/MuPDF,DjVuLibre,OCR) (c) 2016, GPLv3, http://willus.com
Compiled Nov 26 2016 with Gnu C v4.8.5 for Linux on x64.

Could you please advice what should be correct command for slicing pdf pages to ipad air 2 screen using your cool powerful tool?
Thank you for creating it!
try:
k2pdfopt -mode fitwidth -w 1536 -h 2048 -dpi 264 file.pdf
willus is offline   Reply With Quote