View Single Post
Old 11-02-2018, 09:36 AM   #1601
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 Russell.z View Post
this is ch 6 pdf
the line is overlap i cant use reflow text
please can you give me setting
can used to convert pdf with large font
Russell--try the command below (settings also in attached screen shot).

k2pdfopt -as -de 2 -dev kv -col 1 -bpc 1 -vls -3 -vb 1.25 -fc- -mag 2 ch6.pdf

I've attached the result. Some comment about your conversions:
1. I don't think the _k2opt file you posted was converted with the options shown in your previous post. When I tried using your exact same options, I got a very different result. You were clearly using a higher output DPI than 300 or a higher -mag value than 1.
2. Do not use -r for English left-to-right text. It is intended for use with Arabic and other languages that are read from right to left. This is the main reason you were seeing the strange word breaks.
3. I added -as to auto-straighten (de-skew) your text. It was slightly skewed, which makes breaking the lines less reliable.
4. I added -de to try and remove speckles / small artifacts since your scan quality is not very good.
5. You don't need to use -ac (autocrop), at least in the example you sent. It's really more for when you have dark edges at the very edge of your PDF due to poor copying of the original.
6. I removed several options you specified that I felt either weren't necessary or were using the default values anyway.
7. You can adjust the value of the -mag option to change the font size in the output.
8. Not sure you really needed the -vls, -vb, or -bpc options, but I left them in. -bpc 1 will make the output file size smaller if that's what you want--it does 1-bit color resolution. Each pixel can therefore be only black or white--no grayscale. The -vls and -vb options don't really impact this particular conversion.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	222
Size:	201.7 KB
ID:	167394  
Attached Files
File Type: pdf ch6_k2opt.pdf (417.4 KB, 232 views)

Last edited by willus; 11-02-2018 at 09:39 AM. Reason: Added #8.
willus is offline   Reply With Quote