View Single Post
Old 07-02-2022, 08:47 PM   #1956
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 stamatis View Post
I convert a book. The first page is ok. But the second is smaller. The same happens after a number of pages. One is ok, but the following are smaller. I submit 2 pages to see the difference. Any idea?
Thank you for sending me the PDF. You are using the "fitpage" mode of conversion (-mode fp), which is doing exactly what it ways it will do--trimming each page within your crop box and fitting that to the output page so that it gets the largest text size / magnification possible. This means that the occasional page with less text on it--at the beginning or end of a chapter--will be fit at a higher magnification because it is less tall and can fit to the width of your screen. If you would like a more consistent output page size, you have two options:

1. Use the fit-width mode, where k2pdfopt will fit to the width of the device. This will break source pages up into multiple output pages if that is okay with you:

k2pdfopt -dev kbhd -mode fw -ls- -cbox .14,.22,5.29,7.81 -om .2

(the -ls- will keep the output in portrait mode.)

2. Use the crop mode with a tighter box around your page text. This will not trim the crop box so that all source pages will translate to a single output page of the same size:

k2pdfopt -dev kbhd -mode crop -cbox 0.64in,0.98in,4.20in,6.09in -om .2
willus is offline   Reply With Quote