![]() |
#2071 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 72,047
Karma: 307935764
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.
|
![]() |
![]() |
![]() |
#2072 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,282
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
|
![]() |
![]() |
![]() |
#2073 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 248528
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) |
![]() |
![]() |
![]() |
#2074 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 248528
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 |
![]() |
![]() |
![]() |
#2075 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,007
Karma: 18401861
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. |
|
![]() |
![]() |
![]() |
#2076 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 248528
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 06:13 AM. |
![]() |
![]() |
![]() |
#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
|
![]() |
![]() |
![]() |
#2078 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,282
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 07:06 PM. |
|
![]() |
![]() |
![]() |
#2079 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,282
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#2080 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,282
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#2081 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 164
Karma: 248528
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. |
||
![]() |
![]() |
![]() |
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Viewing PDFs with another font | Font | PocketBook | 4 | 11-12-2010 08:27 AM |
Viewing Textbook PDFs... | NJReader | enTourage Archive | 4 | 08-17-2010 05:17 PM |
PRS-600 Restart bug while viewing PDFs? | conundrum | Sony Reader | 2 | 03-04-2010 08:46 PM |
More on viewing pdfs | dso371 | Bookeen | 8 | 03-11-2008 07:15 PM |
Viewing Untagged PDFs on Palm T|X | Eroica | Reading and Management | 3 | 12-10-2007 01:44 PM |