![]() |
#391 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
I get an error when trying to use Tesseract OCR engine on the 64-bit windows platform (v1.65). After selecting Tesseract for the OCR choice, I've left all other choices in that selection at their default. The only other change I'm making is the Device settings (d) for Kindle Paperwhite.
So this is the command line I've built: Selected options: "C:\Users\Cherie\Documents\My eBooks\Calibre Library\Jesse Petersen\Club Monstrosity (124)\Club Monstrosity - Jesse Petersen.pdf" -dev kpw -ocr t -ocrhmax 1.5 -ocrvis s After hitting enter to begin the conversion, I get the following errors: Failed loading language 'eng' Tesseract couldn't load any languages! Could not find Tesseract data (env var TESSDATA_PREFIX = (not assigned)). Using GOCR v0.49. Reading 233 pages from C:\Users\Cherie\Documents\My eBooks\Calibre Library\Jesse Petersen\Club Monstrosity (124)\Club Monstrosity - Jesse Petersen.pdf ... Detecting document orientation ... No rotation necessary. SOURCE PAGE 1 of 233 (7.5 x 9.4 in) ... 0 new pages saved. And then it stops working completely at page 2, throwing up the standard k2pdfopt.exe has stopped working error dialog from Windows. I don't get these errors using the Gocr engine, but I guess Tesseract is more accurate so I'd like to try to use that one if possible. |
![]() |
![]() |
![]() |
#392 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2012
Device: Kindle 3
|
hi,
i have just installed the new version. each time i launch the program and start to convert a pdf file, it crushes. i checked your suggestion and downloaded v. 1.65 for Windows 7 32 Bit. it still doesn't work. previous versions worked in my pc without causing any problem. what should i have to do right now? should i continue using older version? |
![]() |
![]() |
Advert | |
|
![]() |
#393 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#394 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
-v -debug ...and then press <Enter> twice to start the conversion. Immediately after the crash, take a screen shot by typing <Shift>-<Print Screen> (move the dialog box out of the way of the command terminal). Post the screen shot of the command terminal if you can manage it (or send my a private message if you prefer to take it off this thread). That will help. |
|
![]() |
![]() |
![]() |
#395 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#396 |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2012
Device: Kindle 3
|
hi again,
i am not sure if i got you right. but i try to take a screenshot of the program when windows crashes. you can find the image attached in the post. hope it will work. |
![]() |
![]() |
![]() |
#397 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
-ocrhmax 1.5 -ocrvis s options in your command line are both the default values, so you don't need to specify them. |
|
![]() |
![]() |
![]() |
#398 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
You might also try skipping page one--use this command option, for example: -p 2- That will convert pages 2 and up. Last edited by willus; 04-16-2013 at 10:17 AM. |
|
![]() |
![]() |
![]() |
#399 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 91
Karma: 6020
Join Date: Feb 2009
Location: Silicon Valley, CA
Device: Kindle Voyage, Samsung Galaxy S23+, Galaxy Tab S6
|
So I'm playing around with the best conversion options for this particular book I received from the publisher in PDF format.
The options that produce the best options for reading on my paperwhite so far are -mode fw -dev kpw -ls- -mb 0.25 -mt 0.25 However the cover image is now being split across 2 pages so I tried to add -f2p -1 to the command line as well, but that causes all the other pages to lose their "fit to width" formatting. And then some pages, often the ones that are the beginning of a new chapter, are even more compressed. And as far as I can tell, there aren't even any images on any of those other pages (unless the chapter marker is an image instead of text) so I don't know why the addition of the f2p option would cause all the other pages in the PDF to change too. Also, I read a few pages back that Vanilla was trying to get k2pdfopt to recognize chapter breaks and keep the existing page breaks there. Were you able to accomplish that? I'd love to have that. But if not, I'll try to run the resulting PDF through Calibre to do that. Finally, I discovered that k2pdfopt doesn't like filenames with parenthesis in the name. I had to remove the parenthesis so that the program wouldn't error out. Anyhoo, let me know if you want me to PM you the PDF I'm trying to work with. It's copyrighted so I can't post it here. Though maybe you can just figure out what's going on based on my description above... so I'll wait to hear back from you before sending it along. Thanks! ![]() |
![]() |
![]() |
![]() |
#400 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
Right now k2pdfopt doesn't have any smarts to look for chapter tags in a PDF file, if there are such things. I hope to add something like that. What I did was to try and at least put a reasonable gap between places where there is an obvious font size change so that new chapters stand out a little better, but I didn't add a way to put a page break in--I'd need to be certain it was a new chapter and I'm not sure how to do that (yet). As for the issue with the split figure, k2pdfopt is behaving as designed. The -mode fw command essentially tells it to treat every page region like a single figure (i.e. don't look inside the region except to find the break point where it can split the region across pages), so if you then add -f2p -1 (telling it not to break figures), then you see what you get. I'll have to think about how I want to handle this. It's certainly reasonable (and expected) behavior to do what you wanted. For now, if you're really set on having the cover page not split, you can convert that page with a different command and then merge the outputs together using pdfsam or jpdftweak. Hopefully the next release will offer some smarter behavior. |
|
![]() |
![]() |
![]() |
#401 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2012
Device: Kindle 3
|
Quote:
sorry for this late post. i got that the crash problem was due to the protected pdf file. despite that i removed its protection, the problem still continues. nevertheless, new version works well with other cracked pdf files. thanks once again for your assistance. |
|
![]() |
![]() |
![]() |
#402 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 18200
Join Date: Apr 2013
Device: PRESTIGIO PER3464B
|
Hi! I have PRESTIGIO eBook Reader PER3464B and I have problems with reading scanned books, because the letters are too small. I was hoping your software would help me, but I have some problems...Whenever I try to convert some scanned ebook I get this:
![]() Some of the letters are very big, and some of them are ok...I've noticed that these sentences with big letters are not ok...It seems like they are cut on the wrong places...But those sentences with smaller letters are perfect. Is there any way to make ALL LETTERS be small? I mean, to be equally small and with right sentences which are not cut on a wrong place? Pls, help! ![]() |
![]() |
![]() |
![]() |
#403 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
![]() |
![]() |
![]() |
#404 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11
Karma: 18200
Join Date: Apr 2013
Device: PRESTIGIO PER3464B
|
Quote:
Code:
http://www.mediafire.com/view/?60ay8s7q16ikcg1 |
|
![]() |
![]() |
![]() |
#405 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,299
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
-ds 0.4 (set document scaling factor to 0.4--or select "ds" in the menu and then enter 0.4 for the value). -as (Turn on auto-straightening--or select "a" in the menu). |
|
![]() |
![]() |
![]() |
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 |