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 makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
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:	86
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:	76
Size:	47.2 KB
ID:	211982
Click image for larger version

Name:	ad3.jpg
Views:	93
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 makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
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: 65
Karma: 358058
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 makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
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,288
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 makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplanedrizh makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
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:	68
Size:	91.9 KB
ID:	212047   Click image for larger version

Name:	2.png
Views:	80
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,288
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,288
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
Old 01-15-2025, 07:13 PM   #2096
tetraxi33
Junior Member
tetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
Hello. I liked this software very much and tried different command line settings for a whole day. Everything is good, but whenever an image is inserted into the text, I could not make the software detect this image as a separate block. Do you think there is a way to do this? I added screenshots. I tried -cg -ch etc. and also -rsf and -to command line options with no success.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-01-15 230754.png
Views:	42
Size:	229.3 KB
ID:	213099   Click image for larger version

Name:	Screenshot 2025-01-16 014025.png
Views:	44
Size:	156.3 KB
ID:	213100  

Last edited by tetraxi33; 01-15-2025 at 07:17 PM.
tetraxi33 is offline   Reply With Quote
Old 01-15-2025, 07:22 PM   #2097
tetraxi33
Junior Member
tetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
Quote:
Originally Posted by tetraxi33 View Post
Hello. I liked this software very much and tried different command line settings for a whole day. Everything is good, but whenever an image is inserted into the text, I could not make the software detect this image as a separate block. Do you think there is a way to do this? I added screenshots. I tried -cg -ch etc. and also -rsf and -to command line options with no success.
I mean I couldn't make the software detect both the image and the text next to it as seperate blocks. So the text next to the image is always in small font size. I beg your help. Thanks beforehand.
tetraxi33 is offline   Reply With Quote
Old 01-15-2025, 08:26 PM   #2098
tetraxi33
Junior Member
tetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
Quote:
Originally Posted by drizh View Post
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.


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.
The solution is "-j 0+". If you write this as an additional code it will justify the text without gaps.
tetraxi33 is offline   Reply With Quote
Old 01-18-2025, 10:23 AM   #2099
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,288
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by tetraxi33 View Post
I mean I couldn't make the software detect both the image and the text next to it as seperate blocks. So the text next to the image is always in small font size. I beg your help. Thanks beforehand.
Okay--I made a PDF of your screen shot (at 96 dpi) and was able to get k2pdfopt to parse it the way you want with this command:

Code:
k2pdfopt -sm -crgh .01 -gtr .02 -f2p -1 sample.pdf
The -sm option just creates a PDF showing how k2pdfopt parsed the page--this is a useful debugging tool.

The -crgh option default is .013 (1/72) inch. I lowered it. This makes it easier to detect a 2-column sub-section of the document. See this page for how it is used.

The -gtr option makes it easier for k2pdfopt to detect the row breaks since your text lines are kind of crowded together. The default value is .006. The higher value means there can be more "black" in the gaps between rows--they don't have to have pristinely all-white gaps between them.

Finally, -ftp -1 shrinks the figures onto a single page if they are extra tall.
Attached Files
File Type: pdf sample.pdf (129.3 KB, 16 views)
File Type: pdf sample_k2opt.pdf (646.4 KB, 17 views)
File Type: pdf sample_marked.pdf (373.3 KB, 15 views)
willus is offline   Reply With Quote
Old 01-19-2025, 04:23 PM   #2100
tetraxi33
Junior Member
tetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplanetetraxi33 makes transoceanic flights without the assistance of an airplane
 
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
Quote:
Originally Posted by willus View Post
Okay--I made a PDF of your screen shot (at 96 dpi) and was able to get k2pdfopt to parse it the way you want with this command:

Code:
k2pdfopt -sm -crgh .01 -gtr .02 -f2p -1 sample.pdf
The -sm option just creates a PDF showing how k2pdfopt parsed the page--this is a useful debugging tool.

The -crgh option default is .013 (1/72) inch. I lowered it. This makes it easier to detect a 2-column sub-section of the document. See this page for how it is used.

The -gtr option makes it easier for k2pdfopt to detect the row breaks since your text lines are kind of crowded together. The default value is .006. The higher value means there can be more "black" in the gaps between rows--they don't have to have pristinely all-white gaps between them.

Finally, -ftp -1 shrinks the figures onto a single page if they are extra tall.
Thank you sir. It seems that carefully tweaking the settings can make almost any pdf readable.
tetraxi33 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 01:20 PM.


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