Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2019, 02:37 PM   #1681
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,048
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ahmd5800 View Post
i found the best result come when i chose 2 column conversion mod just i ask if their any way to make the font size biger or in other word to make the page contain like only 12 lines per page?becase the font size order work just in reflow text not in other conversion mod, and if i chose reflow check the wards become not in that good shape of the source
thank you very very much
If you don't use re-flow, then you are stuck fitting the width of your document to the width of your reading device, and that limits the font size. You must use text re-flow to get to a larger font size. As I said, it would help if you could post your source PDF, or if you don't want to post it publicly, send it to me in a PM.
willus is offline   Reply With Quote
Old 02-03-2019, 02:40 PM   #1682
ahmd5800
Junior Member
ahmd5800 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2019
Device: kindle paperwhite
and this is the sourse file sir
Attached Files
File Type: pdf لاعب الشطرنج ل س&#.pdf (1.18 MB, 9 views)
ahmd5800 is offline   Reply With Quote
Old 02-03-2019, 02:52 PM   #1683
ahmd5800
Junior Member
ahmd5800 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2019
Device: kindle paperwhite
could you find the best setting even if i use text reflow to make it in good shape on kindel the space between lines is not the same and it look bad
this is an image of it
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	14
Size:	148.4 KB
ID:	169487  
ahmd5800 is offline   Reply With Quote
Old 02-03-2019, 03:54 PM   #1684
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,048
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ahmd5800 View Post
and this is the sourse file sir
The default options work pretty well for me (along with -r to go right to left). You can increase the size by setting dpi to 400 instead of 300, for example, e.g.

k2pdfopt -r -odpi 400 -vls 1.5 mydoc.pdf

Your margin cropping is a bit aggressive (it will cut off some of the text on some of the pages) and not really necessary--nor are the -ac or -de options since your scan is very clean.

The font varies in size because some of it is from the footnotes, which are typeset in smaller font.

The -vls 1.5 should keep the line spacing more uniform at 1.5x single space.

Last edited by willus; 02-03-2019 at 04:00 PM. Reason: Add comment on line spacing
willus is offline   Reply With Quote
Old 02-03-2019, 04:10 PM   #1685
ahmd5800
Junior Member
ahmd5800 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2019
Device: kindle paperwhite
thanx sir but how can i get red of abnormal space like in the picture
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	12
Size:	180.4 KB
ID:	169488  
ahmd5800 is offline   Reply With Quote
Old 02-03-2019, 04:14 PM   #1686
ahmd5800
Junior Member
ahmd5800 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2019
Device: kindle paperwhite
Quote:
Originally Posted by ahmd5800 View Post
thanx sir but how can i get red of abnormal space like in the picture
also if i change the dpi is it ok?
what about if i change the device and chose smaller one (hight and width), is it stel work on my device?
best regard
ahmd5800 is offline   Reply With Quote
Old 02-03-2019, 05:11 PM   #1687
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,048
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ahmd5800 View Post
also if i change the dpi is it ok?
what about if i change the device and chose smaller one (hight and width), is it stel work on my device?
best regard
Yes--most devices will just fit the PDF page to their screen even if the dimensions or resolution don't exactly match that of the device.

To prevent the large spacing between words you can either turn off full justification like so:

-j 2-

... or you can adjust the word-breaking parameter, e.g. try:

-ws 0.05

K2pdfopt tries to mirror the justification of the source document, which is why full justification is turned on by default for your case.
willus is offline   Reply With Quote
Old 02-04-2019, 05:00 PM   #1688
Loyd
Junior Member
Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!
 
Posts: 9
Karma: 80134
Join Date: Sep 2018
Device: none
Quote:
Originally Posted by willus View Post
You should not have had to compile 2.51 yourself--there is an OSX binary download on my site. The command-line font size option is -fs, e.g. -fs 12 for 12-point font.

You don't need the -gs option unless you did not compile with MuPDF and are thus forced to use ghostscript. The Mac OSX binaries from my site are compiled with the MuPDF library.

To fully justify the text (no spaces at the end of lines in the converted file) use: -j 0+

To eliminate the artifact on p. 16, remove your -gtr option. It's too high and causing overly aggressive line cutting. The default works fine for your document since there is already plenty of gap between the lines in the source file. You should only need to increase -gtr when the lines in the source file are so close to each other that they slightly overlap in places.

There is no way to change the font with k2pdfopt. That's not part of its functionality. To do that you need to fully convert the PDF to a different type, such as mobi, which often requires a lot of manual editing, or you need the source document that created the PDF.

Also, I think you're over-killing the -dr option. You shouldn't need nearly 3x the resolution of your reading device. All that does is to make the conversion unnecessarily slow and the output file unnecessarily large (in bytes).

So my final recommendation is:
k2pdfopt -dev kp3 -j 0+ -col 1 -mag 1.2 -dr 2 -vls 1.6 -x m.pdf

Converted file attached.
Thank you for your time.

-dev kp3 -j 0+ -col 1 -mag 1.2 -dr 2 -vls 1.6 -x ; it's what I was searching for !

However, when files of the same type contain images the output is, unfortunately, not good (please see the two files attached).

What do you suggest to correct that ?
In advance thank you
Loyd is offline   Reply With Quote
Old 02-05-2019, 09:28 AM   #1689
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,048
Karma: 8416109
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Loyd View Post
Thank you for your time.

-dev kp3 -j 0+ -col 1 -mag 1.2 -dr 2 -vls 1.6 -x ; it's what I was searching for !

However, when files of the same type contain images the output is, unfortunately, not good (please see the two files attached).

What do you suggest to correct that ?
In advance thank you
I would suggest allowing two columns for the one figure that has text next to it, but I don't think it will work--the text is too close to the figure. You can add -jfc- to prevent k2pdfopt from trying to interpret the line just underneath a photo as a caption. That should help a little.
willus is offline   Reply With Quote
Old 02-09-2019, 11:03 PM   #1690
Loyd
Junior Member
Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!Loyd My eyes! My eyes! The light is just too bright!
 
Posts: 9
Karma: 80134
Join Date: Sep 2018
Device: none
Quote:
Originally Posted by willus View Post
I would suggest allowing two columns for the one figure that has text next to it, but I don't think it will work--the text is too close to the figure. You can add -jfc- to prevent k2pdfopt from trying to interpret the line just underneath a photo as a caption. That should help a little.
Thank you for your reply.

I tested to increase the number of columns to 2 with this : -dev kp3 -j 0+ -col 2 -mag 1.2 -dr 2 -vls 1.4 -jfc- -x

Unfortunatly the result is not good...

any suggestions are welcome !
Thank you.
Loyd is offline   Reply With Quote
Reply

Tags
ebook apps, k5 tools, kindle tools, kindle touch, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing PDFs with another font Font PocketBook 4 11-12-2010 09:27 AM
Viewing Textbook PDFs... NJReader enTourage Archive 4 08-17-2010 06:17 PM
PRS-600 Restart bug while viewing PDFs? conundrum Sony Reader 2 03-04-2010 09:46 PM
More on viewing pdfs dso371 Bookeen 8 03-11-2008 08:15 PM
Viewing Untagged PDFs on Palm T|X Eroica Reading and Management 3 12-10-2007 02:44 PM


All times are GMT -4. The time now is 01:25 PM.


MobileRead.com is a privately owned, operated and funded community.