View Single Post
Old 08-22-2015, 02:05 PM   #1123
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 isaacbh View Post
Hello, I have trouble with page breaks on a pdf I'm trying to process: k2pdfopt will sometimes break a page in a place that doesn't seem right. I hope that attached images are clear enough.

The first 2 images are from the original pdf. The other 2 are the same pages after processing. The program puts a page break at the end of the first (original) page, even through, as you can see from the second page, the text simply continues. There is no new section or chapter.

My command line was:

Code:
k2pdfopt -ui- -x -h 1430 -w 1080 -dpi 265 -col 1 -wrap- -vb -2 -f2p -1 -g 0.3 -bpc 2 -p 14-184 -mt 1.5cm -mb 1.3cm -om 0.3cm t.pdf
As you can see from the command, this is for the Kobo Aura H2O and I'm trying to preserve the layout of the pdf as much as possible.
FYI, it's always more helpful if you can post the actual source PDF or extract the key pages from it as a PDF. Much easier to diagnose the issue. Does the source PDF have bookmarks or a TOC? If it does, k2pdfopt will break pages wherever there is a TOC/bookmark link to a page (by default). That's the only reason I can think it would stick a page break there. To turn this off, use:

-bp--

or

-toc-

... to disable bookmarks altogether. BTW, maybe you want to use the fitwidth mode?

-mode fw -ls-

This will not allow you to use the gamma correction or -bpc options, but it would replace the options below and use native PDF output which would probably make your output file smaller if you find that preferable. Generally, however, e-books don't do as well with native PDF output in terms of CPU processing cost and the display time. Bitmaps are typically quicker to display and don't tax the CPU as much.

-col 1 -wrap- -vb -2 -f2p -1

Last edited by willus; 08-22-2015 at 02:12 PM.
willus is offline   Reply With Quote