08-11-2024, 05:16 AM | #2071 |
The Grand Mouse 高貴的老鼠
Posts: 72,502
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Academic papers are often still in copyright. This one even had a copyright notice on each page. Removed. Please be more careful about uploading.
|
08-11-2024, 10:01 AM | #2072 |
Fuzzball, the purple cat
Posts: 1,283
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
|
08-15-2024, 04:56 PM | #2073 |
Groupie
Posts: 181
Karma: 304158
Join Date: Jan 2016
Device: none
|
I find sans serif fonts easier to read on my e-reader.
Unless I missed it, it looks like k2 doesn't support setting the fonts in the output. Is there a utility that can replace them in the input file? For instance, here are the fonts in a book I'm currently reading: Code:
.SFNS-Regular_wdth_opsz110000_GRAD_wght (TrueType; embedded) .SFNS-Regular_wdth_opsz110000_GRAD_wght (TrueType; Roman; embedded) Alegreya-Regular (TrueType; Roman; embedded) |
08-17-2024, 03:43 AM | #2074 |
Groupie
Posts: 181
Karma: 304158
Join Date: Jan 2016
Device: none
|
I have another question.
The original PDF is an image-only file — meaning: In SumatraPDF, I can't select text with the mouse. After running that original file through k2, the output on my e-reader is fine. However, I'm having a problem with inputs that I ran through Abbyy Fine Reader: - Saved as "searchable" PDF: The output from k2 inserts carriage returns about half-way through each line - Saved as "image" PDF: I only get empty pages. I zipped a sample of each file (original, searchable, image). I used the following commands: Code:
#mt to remove header #good k2pdfopt.exe -w 758 -h 1024 -dpi 213 -mode fw -ls- -mt 1.02 -fc- input.original.pdf #wrong carriage returns k2pdfopt.exe -w 758 -h 1024 -dpi 213 -mode fw -ls- -mt 1.02 -fc- input.OCR.searchable.pdf #only empty pages k2pdfopt.exe -w 758 -h 1024 -dpi 213 -mode fw -ls- -mt 1.02 -fc- input.OCR.image.pdf |
08-17-2024, 01:05 PM | #2075 | |
Wizard
Posts: 3,015
Karma: 18765431
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Quote:
EPUBs are rendered completely differently from PDFs. There is no kerning information in EPUBs, so swapping fonts doesn't lead to weird character spacing. |
|
08-17-2024, 04:35 PM | #2076 |
Groupie
Posts: 181
Karma: 304158
Join Date: Jan 2016
Device: none
|
Too bad. Thanks.
I'm struggling at getting k2 to convert a searchable PDF to something that displays on my reader as well as it does on the computer. For some reason, the output has carriage returns in the middle, along with garbage characters like #, and the font size changes occasionally. Unreadable. I'm suprised since the doco says that by default, k2 converts PDFs to bitmaps so the output should be clean without having anything fancier to do than this: Code:
k2pdfopt.exe -w 758 -h 1024 input.pdf Edit: Using the GUI, I found that the solution is to keep the "Re-flow text" unchecked (default: -fc- -wrap-), which looks better than checking that option (-fc- -wrap+)… and way better than the options I tried through the CLI after reading the list of options availables. Edit: False hope. I tried again, and for some reason, I get crap, with or without the wrap option (-fc- -wrap-, -fc- -wrap+). I don't get it. -- Edit: As a work-around, I convert the PDF into PNG, merge them back into a PDF, and run it through k2 Code:
#Use best resolution mutool.exe convert -O resolution=600 -o %03d.png input.pdf FAILS mutool.exe merge -o output.pdf -O compress *.png img2pdf --title "My book" --author "My author" -o output.pdf *.png k2pdfopt.exe -odpi 213 -m 0.2 -fc- -wrap- -h 1024 -w 758 output.pdf Last edited by Shohreh; 08-19-2024 at 07:13 AM. |
08-18-2024, 09:24 PM | #2077 |
Junior Member
Posts: 1
Karma: 55640
Join Date: Aug 2024
Device: Kindle Paperwhite
|
Does anyone have tips for processing magazine PDFs with k2pdfopt? I've been trying to figure out how to best read a 3-column magazine that has text interspersed with lots of images and small cartoons, but the text gets broken up oddly around the images/cartoons
|
08-24-2024, 07:55 PM | #2078 | |
Fuzzball, the purple cat
Posts: 1,283
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
BTW, you used # for comments in your command list, so clearly you're not running them in a .bat file. What shell are you using? Last edited by willus; 08-24-2024 at 08:06 PM. |
|
08-24-2024, 08:00 PM | #2079 | |
Fuzzball, the purple cat
Posts: 1,283
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
08-24-2024, 08:04 PM | #2080 | |
Fuzzball, the purple cat
Posts: 1,283
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
08-30-2024, 04:24 AM | #2081 | ||
Groupie
Posts: 181
Karma: 304158
Join Date: Jan 2016
Device: none
|
Thansk for the help.
Quote:
Indeed, I now suspect it's just my cheap and older 6" reader whose PDF reader isn't up to par. I don't have another e-reader to check. The k2 output looks fine on SumatraPDF. Quote:
Since then, I noticed Abbyy Finereader can convert a PDF to EPUB… with amazing result. For "bitmap PDFs" that also contain an OCR layer , I'll just have to find a good English/French spellchecker to fix the few typos in the HTML files in the EPUB output. |
||
09-01-2024, 01:01 AM | #2082 | |
Junior Member
Posts: 4
Karma: 55640
Join Date: Aug 2024
Device: Kindle Paperwhite
|
Quote:
|
|
09-21-2024, 03:08 AM | #2083 |
Junior Member
Posts: 2
Karma: 55640
Join Date: Sep 2024
Device: Kindle PW SE
|
Hi folks, I'm new around these parts and could use some help.
I have an issue that seems basic compared to some of the ones everyone is experiencing, but I've been banging my head against the wall for a long time poring through the command-line options documentation and everything. Maybe someone can help. My pdf has page numbers and chapter names in the headers that I would like to keep at the top of the page, but no matter what options I choose, I get stuff like this: This was output just in default mode with my Paperwhite SE dimensions as -h and -w. I made sure to use -pb+. I can't remember whether I had -as enabled, but I don't think that should affect this. My understanding is that -pb+ should be inserting a page break between (for example) the end of page 16 and the header on page 17, which you can see right in the middle of the page. I've also tried using the calibre plugin interface with no success. Please help! Last edited by hardreader; 09-21-2024 at 03:11 AM. |
09-21-2024, 03:16 AM | #2084 | |
Junior Member
Posts: 2
Karma: 55640
Join Date: Sep 2024
Device: Kindle PW SE
|
Quote:
Last edited by pdurrant; 09-22-2024 at 07:43 AM. |
|
09-24-2024, 05:50 PM | #2085 |
Fuzzball, the purple cat
Posts: 1,283
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
If I'm interpreting correctly, you want to put each source page header at the top of each destination page--basically you want to preserve page headers/footers. I don't recall anybody ever asking for that before, surprisingly (because it's a very reasonable ask). Presently there is no way to do that with k2pdfopt. I'll add it to my feature request list, but I haven't had time to do a major update in quite a while.
|
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 |