11-13-2024, 04:40 AM | #2086 |
Junior Member
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) 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) 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 |
11-15-2024, 11:14 AM | #2087 |
Junior Member
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. |
11-16-2024, 04:30 AM | #2088 |
Connoisseur
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 |
11-16-2024, 06:14 AM | #2089 | |
Junior Member
Posts: 4
Karma: 55644
Join Date: Nov 2024
Device: Kindle PW11
|
Quote:
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. |
|
11-17-2024, 02:41 PM | #2090 |
Fuzzball, the purple cat
Posts: 1,288
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
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.
Where k2pdfopt breaks lines is controlled by the -gtr option. Read up on that option and you can try adjusting it. Word spacing is probably most controlled by the output justification -- the -j option. |
11-17-2024, 03:23 PM | #2091 | |
Junior Member
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:
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. |
|
11-17-2024, 03:50 PM | #2092 |
Fuzzball, the purple cat
Posts: 1,288
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
You could also try adjusting the -ws (word spacing) value.
|
12-24-2024, 03:41 AM | #2093 |
Guru
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? |
12-25-2024, 02:53 PM | #2094 |
Fuzzball, the purple cat
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.
|
12-25-2024, 05:51 PM | #2095 |
Guru
Posts: 931
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
Thanks. It looks like a recurring problem with the source pdfs, then.
|
01-15-2025, 07:13 PM | #2096 |
Junior Member
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.
Last edited by tetraxi33; 01-15-2025 at 07:17 PM. |
01-15-2025, 07:22 PM | #2097 | |
Junior Member
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
|
Quote:
|
|
01-15-2025, 08:26 PM | #2098 | |
Junior Member
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
|
Quote:
|
|
01-18-2025, 10:23 AM | #2099 | |
Fuzzball, the purple cat
Posts: 1,288
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
Code:
k2pdfopt -sm -crgh .01 -gtr .02 -f2p -1 sample.pdf 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. |
|
01-19-2025, 04:23 PM | #2100 | |
Junior Member
Posts: 4
Karma: 55644
Join Date: Jan 2025
Device: kobo forma
|
Quote:
|
|
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
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 |