View Single Post
Old 10-14-2013, 07:14 PM   #598
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 agelos100 View Post
Hello Willus,

I have a problem with a pdf conversion, I attach the source file, the output for kindle 3 default settings, and a modified approach, with: -gtw 0.02 -vls 1.15

Any suggestion for better results?

Thanks in advance.

Angelos
Angelos--How exactly were you hoping to improve the conversions? It looks like your document is just wide enough that by default k2pdfopt re-flows it, but that's probably not what you want(?). If you don't need re-flow, and if the line spacing is okay as-is, then I recommend using the "fitwidth" mode:

k2pdfopt -mode fw -ls- nine.pdf

(The -ls- will keep it in portrait mode.) This keeps the document in native mode with scaleable fonts and searchable / highlight-able text.

If you want to spread out the lines a little, you can increase the line spacing but keep re-flow off:

k2pdfopt -vls 1.2 -wrap- nine.pdf

If you want full blown text wrapping, that's mostly what you were getting with your second conversion, where you correctly figured out that k2pdfopt seems to need a little help breaking words apart and used a smaller-than-default value for -gtw, except I'd use -gtw 0.2:

k2pdfopt -vls 1.15 -gtw 0.2 nine.pdf

The value of 0.02 is too small and seems to have caused some strange behavior which I'll have to investigate. The -vls 1.15 is only necessary if you want to spread out the line spacing compared to the original document. Let me know if these help or if there are other ways you were hoping to improve the conversion.

Last edited by willus; 10-14-2013 at 07:20 PM.
willus is offline   Reply With Quote