Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 11-13-2024, 04:40 AM   #2086
drizh
Junior Member
drizh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: Kindle PW11
Hi,
Thank you very much for this great application. It is the best tool for converting that I have ever used before.
It made it possible to read PDF books on my Kindle.
But I still have some minor issues. I tried to find answers in that thread but was unsuccessful.
I use the next command for converting:
k2pdfopt %f -w 1236 -h 1648 -c -wrap+ -hy- -vb -2 -col 1 -o %%s_p.pdf
Could someone help me with that, please?

1. Output file size was significantly increased 5 Mb -> 117.8 Mb

2. Part of the letters moved to the next page. (see 2.png)
Click image for larger version

Name:	ad1.jpg
Views:	42
Size:	29.7 KB
ID:	211981

3. The gap between words is different if that word is from the end of the line in the original document.See 3_1.png (original document) 3_2.png (output document after wrapping)
Click image for larger version

Name:	ad2.jpg
Views:	40
Size:	47.2 KB
ID:	211982
Click image for larger version

Name:	ad3.jpg
Views:	48
Size:	45.6 KB
ID:	211983

The most important thing for me is decreasing the file size, but I can do nothing.
I appreciate any help you can provide.

Last edited by pdurrant; 11-13-2024 at 05:00 AM. Reason: Moved images to attachments, as too wide (>600pixels) otherwise
drizh is offline   Reply With Quote
Old 11-15-2024, 11:14 AM   #2087
drizh
Junior Member
drizh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: Kindle PW11
Hello again.
I played a bit with arguments and results.
So I have got answers to some questions and will put them here:
1. The output file is the image. So I can use greyscale images with 4 bits (the maximum that my reader supports). Use the exact device resolution and DPI. And probably compression.
2. -om 0.03 fixed the issue.
3. Still can do nothing with that.
Have a good day.
drizh is offline   Reply With Quote
Old 11-16-2024, 04:30 AM   #2088
VladimirS
Connoisseur
VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.VladimirS ought to be getting tired of karma fortunes by now.
 
Posts: 64
Karma: 302424
Join Date: Aug 2019
Location: Serbia, former Yugoslavia
Device: Pocketbook InkPad 3
https://www.willus.com/k2pdfopt/help/options.shtml
Did you allready check this ? Cheers !

Last edited by VladimirS; 11-16-2024 at 04:31 AM. Reason: adition oftext
VladimirS is offline   Reply With Quote
Old 11-16-2024, 06:14 AM   #2089
drizh
Junior Member
drizh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: Kindle PW11
Quote:
Originally Posted by VladimirS View Post
https://www.willus.com/k2pdfopt/help/options.shtml
Did you allready check this ? Cheers !
Hello.
First of all, thanks for your answer.
And yes, I have read the whole forum, wiki, and manual but did not find an answer to my third point.
Could you please point me to the post or parameter I should use to fix issue #3. Many thanks for considering my request.
drizh is offline   Reply With Quote
Old 11-17-2024, 02:41 PM   #2090
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,287
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by drizh View Post
1. Output file size was significantly increased 5 Mb -> 117.8 Mb
As you figured out, the output size for bitmapped text re-flow is dominated by the resolution that you choose for the output page along with how many gray levels. If you can avoid text re-flow, you can likely reduce the size much further.

Quote:
Originally Posted by drizh View Post
2. Part of the letters moved to the next page. (see 2.png)
Where k2pdfopt breaks lines is controlled by the -gtr option. Read up on that option and you can try adjusting it.

Quote:
Originally Posted by drizh View Post
3. The gap between words is different if that word is from the end of the line in the original document.See 3_1.png (original document) 3_2.png (output document after wrapping)
Word spacing is probably most controlled by the output justification -- the -j option.
willus is offline   Reply With Quote
Old 11-17-2024, 03:23 PM   #2091
drizh
Junior Member
drizh began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Nov 2024
Device: Kindle PW11
Hello.
Thanks for your patience with newcomers.
For file size, I prefer a bigger size to landscape mode. So I set the optimal resolution, dpi, and color depth to reach the optimal file size.

Quote:
Word spacing is probably most controlled by the output justification -- the -j option.
I have played a lot with that option but without any results. I prefer the full justification, but sometimes I get some results I can't understand.
In general, the text looks great, but some lines have a lot of space at the end. At the same time, other pages look pretty good. And about the gap between words on the same line that can be quite different. Looks like it was calculated before re-flowing the text.
[IMG]1.png[/IMG]
But finally, it's not a big deal. It's awesome that I got the possibility to read PDF files with my reader. I have been searching for that many years.

Thanks again.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	30
Size:	91.9 KB
ID:	212047   Click image for larger version

Name:	2.png
Views:	35
Size:	53.2 KB
ID:	212048  
drizh is offline   Reply With Quote
Old 11-17-2024, 03:50 PM   #2092
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,287
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
You could also try adjusting the -ws (word spacing) value.
willus is offline   Reply With Quote
Old 12-24-2024, 03:41 AM   #2093
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 931
Karma: 53902736
Join Date: Jun 2015
Device: multiple
A lot of game books, and comics, have a mix of black text on light backgrounds and light text on black backgrounds.

k2pdfopt tends to make the black text bolder, but the light text thinner, and sometimes breaks it up. I've experimented with gamma and the erosion filter; is there another option to make both dark and light text reasonably bold?
MarjaE is offline   Reply With Quote
Old 12-25-2024, 02:53 PM   #2094
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,287
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
I think generally the gamma option (-g) is the best at this, maybe mixed with contrast adjustment (-cmax). There may not be an ideal option for you.
willus is offline   Reply With Quote
Old 12-25-2024, 05:51 PM   #2095
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 931
Karma: 53902736
Join Date: Jun 2015
Device: multiple
Thanks. It looks like a recurring problem with the source pdfs, then.
MarjaE is offline   Reply With Quote
Reply

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


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 08:24 PM.


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