View Single Post
Old 09-03-2015, 09:27 PM   #1140
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 Shrimply View Post
Hi Guys,

I've been using k2pdfopt for a while now and it's brilliant and has been a lifesaver. But every now and again is does get things wrong, or rather I probably tell it to do things wrong. I am trying to learn a bit more about the settings but I'm really struggling with problems like this.

http://picpaste.com/Capture-sDYfDg5n.PNG

I need to limit how much white space comes after text in a region I think, or something, but I can't figure out what settings are needed.

Any help is much appreciated.

Thanks
This one is tricky but there are some controls that can help. Try the following:

Code:
k2pdfopt -crgh .15 -ch 1 -cgmax 3
The -crgh setting is the least obvious. It prevents k2pdfopt from switching the column break point between regions 3 and 5 in your diagram. There is a small gap between regions 3 and 5. The -crgh value tells k2pdfopt that the gap between 3 and 5 in your example must be larger than the specified value (0.15 inches in my example above) in order to change where it is breaking the columns, so that prevents it from doing what it did in your example.

The -ch and -cgmax options get k2pdfopt to treat region 2 as a separate column, otherwise it will connect it to region 3 because it is such a short region and so far from region 3. See my command-line usage page.
willus is offline   Reply With Quote