View Single Post
Old 12-29-2012, 10:31 PM   #275
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: 538
Karma: 2526455
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by Fanhoso View Post
Now, is it possible to make k2pdfopt cut every page in a file in two approximate halves so as not to cut through any text?

For example, by telling it to output exactly 2 pages for each input page and to assume device height of half the input page height?
I don't have quite what you want. The closest is to use the -grid option, e.g.

k2pdfopt -grid 1x2x5 ...

will split each source page into a 1 x 2 grid with 5% overlap. It will not try to break between lines, though. You also have to manually specify the device width and height with -w and -h. You could also try:

k2pdfopt -mode fw -ls- ...

This will fit the (cropped) width of the source page to the device width and put as much of each source page as it can on each destination page, breaking at intelligent places. Use -bp to force a destination page break wherever there is a source page break. If you don't want the source page margins trimmed, add -t- to your options.
willus is offline   Reply With Quote