View Single Post
Old 09-02-2018, 01:15 PM   #1573
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 Loyd View Post
...
I have a KP3 and I try to read this arabic PDF (joined).

I used different settings till I get these arguments :

-as -r -om 0.12 -idpi -2 -gs -dev kp3 -gtr 0.2 -j 2+ -sm -col 1 -x

I just need to know if they are the most suitable for my PDF, or from you experience it could be best with others settings ?

Also I wonder how to increase the numbers of words per line without losing quality of the PDF ?
Here's what I came up with:

k2pdfopt -r -as -col 1 -m .2 -ac -sm -gtr .2 -de 1.5 -ehl 1 -mag 0.75 -dev kp3 abed.pdf

-idpi -2 is the default and is not necessary.
-m 0.2 will crop off the outer 0.2 inches of each page, where you have some scanning artifacts that need to be ignored.
-ac (autocrop) will also help remove scanning artifacts at the edges of the pages
-de 1.5 will ignore small defects (speckles) in the scans
-ehl 1 will remove some of the horizontal separators (if you don't want them)
-mag 0.75 will reduce the text size to 75% of the original so that more words fit on each line of the page

Once you get things how you want, you can remove -sm and k2pdfopt will run faster.

I've attached the example outputs.
Attached Files
File Type: pdf abed_k2opt.pdf (1.16 MB, 217 views)
File Type: pdf abed_marked.pdf (2.09 MB, 222 views)
willus is offline   Reply With Quote