04-30-2019, 09:00 AM | #1696 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2011
Device: Kindle 3
|
EDIT: I downloaded the file again and now it works. It must have been a temporary network problem during the downloading of the file. Scratch the question below.
ORIGINAL MESSAGE: Hello! I have installed wine v4.00 on my Linux Mint 19 installation and tried launching k2pdfopt v2.51a 32-bit. It won't run, instead a popup error message saying "Error - Access denied" will show up, immediately followed by a series of popups saying "Error - File not found". Version 2.42 works, though. Any insights? Should I stick with v2.42? Thanks Last edited by Sciamano; 04-30-2019 at 10:29 AM. |
06-27-2019, 01:48 AM | #1697 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
"Unexpected end of file" and "Invalid data type"
Hi,
I've been using k2 to pre-process my pdfs. I've also been using Calibre to organize them, track important topics, etc. My pdf software on my computer often shows the wrong titles for these files, which makes it harder to keep track of things. I've tried using Calibre to copy its metadata to its copies of these book files, to get my pdf software to show the right titles. But the import sometimes fails with k2 files, with either "unexpected end of file," or "invalid data type." I've tried creating a new copy from one of the originals, importing it into Calibre, and copying its metadata, and again, the same error. Do you have any idea why some k2 pdfs might do this? Thanks |
Advert | |
|
06-28-2019, 10:28 AM | #1698 | |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
06-30-2019, 06:38 AM | #1699 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
Yes, we have been through this before. Unfortunately, the files I was keeping the best notes on are ones I'd bought and can't share, as before. I've been up all night trying to track down which of the others glitched out at the end.
But I am using -ui -mode copy -dev dx Also -dev ? gives an error: "device profile '?' not known" Is there a list of available profiles? Thanks. |
06-30-2019, 05:12 PM | #1700 | |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
k2pdfopt -dev "?" (See response below.) I sent you a PM. Code:
Available devices: Kindle 1-5 (alias k2): 560 x 735, 167 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kindle DX (alias dx): 800 x 1180, 167 dpi Mark corners=1, Padding (l,t,r,b)=0,0,0,0 Kindle Paperwhite (alias kpw): 658 x 889, 212 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kindle Paperwhite 2 (alias kp2): 718 x 965, 212 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kindle Paperwhite 3 (alias kp3): 1016 x 1364, 300 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kindle Voyage/PW3+/Oasis (alias kv): 1016 x 1364, 300 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kindle Oasis 2 (alias ko2): 1200 x 1583, 300 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Pocketbook Basic 2 (alias pb2): 600 x 800, 167 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Nook Simple Touch (alias nookst): 552 x 725, 167 dpi Mark corners=1, Padding (l,t,r,b)=0,0,0,0 Kobo Touch (alias kbt): 600 x 730, 167 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Glo (alias kbg): 758 x 942, 213 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Glo HD (alias kghd): 1072 x 1328, 250 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Glo HD Full Screen (alias kghdfs): 1072 x 1448, 250 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Mini (alias kbm): 600 x 730, 200 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Aura (alias kba): 758 x 932, 211 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Aura HD (alias kbhd): 1080 x 1320, 250 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo H2O (alias kbh2o): 1080 x 1309, 265 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo H2O Full Screen (alias kbh2ofs): 1080 x 1429, 265 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 Kobo Aura One (alias kao): 1404 x 1713, 300 dpi Mark corners=0, Padding (l,t,r,b)=0,0,3,4 Nexus 7 (alias nex7): 1187 x 1811, 323 dpi Mark corners=1, Padding (l,t,r,b)=0,0,3,4 |
|
Advert | |
|
06-30-2019, 08:17 PM | #1701 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
Thank you. I'm still trying to find free pdfs which are reliably-enough broken.
|
07-01-2019, 05:33 AM | #1702 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
After several more tries, I finally processed the hardest of these files... so none are completely broken.
I don't know if it caused any of the trouble, but I uninstalled Malwarebytes for the time being. Here is a free pdf which gave me a lot of trouble though: https://gallica.bnf.fr/ark:/12148/bpt6k6348270v (there's an option to download the book as a pdf.) When running in the command line with -mode copy -dev dx, I was getting frequent seg faults. I still get some. When running in the Mac Automator, I get other error messages, and the Automator still often drops out when the regular interface would keep going. |
07-01-2019, 11:25 PM | #1703 | |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
k2pdfopt -mode tm -m 0.8,0.8,0.8,1.5 -n- -dev dx -idpi 144 french_book.pdf I attached this conversion for pages 50-70 of the book. Here's what each option does: -mode tm Tells k2pdfopt to trim each page to eliminate wasted margin space and save each new source page to a new destination page. -m 0.8,0.8,0.8,1.5 Cuts off 0.8 inches around each source page, 1.5 inches off the bottom edge. -n- Turn off native output mode so k2pdfopt can change the contrast of each page. -idpi 144 This is probably most important. It overrides k2pdfopt's default mode of doubling the device resolution for rendering the PDF pages. Without this, k2pdfopt will render each input page at 333 dpi, which slows things way down and uses lots more memory than necessary. The source file has bitmaps that are only 72 dpi, so 144 dpi for rendering them internally in k2pdfopt is plenty. |
|
07-05-2019, 01:20 AM | #1704 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
Thank you. With -idpi 144, it runs straight through.
|
07-19-2019, 12:19 AM | #1705 |
Guru
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
|
I got a bit mixed-up about what was going wrong, it's not that these can't complete processing, it's that they give errors when imported into Calibre and when trying to import Calibre metadata into the pdf.
[I.S. -toc- seems to solve the problem. The version there uses -idpi and not -toc-] -idpi 144 doesn't seem to help with that. I've attached an excerpt of one of the French histories, run through -ui -mode copy -dev dx -idpi 144 -o %s_k2opt144.pdf -p 778-780 Last edited by MarjaE; 07-19-2019 at 02:16 PM. |
08-19-2019, 05:37 AM | #1706 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2019
Device: PC
|
bug(non-ascii): Cyrillic symbols in generated PDF
Sorry, I can't find k2pdfopt issue tracker (one thread in BBCode forum, really?), therefore, I post detailed issue to my GitHub tracker — https://github.com/Kristinita/SashaM...eous/issues/27.
@willus, please, review this issue, when you will have a free time. Thanks. |
08-20-2019, 09:04 PM | #1707 | |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
08-21-2019, 01:42 PM | #1708 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2019
Device: Kobo Aura One
|
Hello @willus,
I am a happy user of k2pdfopt. Recently I tried to compile the program on my own, but due to some incompatibilities with mupdf 1.16 and some header files the build with cmake failed. I created some patches that update the CMakeList.txt file and fix the mupdf version problems. https://pastebin.com/wvAGYw24 https://pastebin.com/ZJrb8TWB https://pastebin.com/VUKhjANT https://pastebin.com/jJwK6UvU https://pastebin.com/Xdz5c2CU https://pastebin.com/rrRZ2uSK You can apply them with patch -p1 <patchfile>. I hope that is somewhat helpful. Greetings, richbridger |
08-21-2019, 08:58 PM | #1709 | |
Fuzzball, the purple cat
Posts: 1,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
08-30-2019, 04:44 PM | #1710 |
Nameless Being
|
Hello Mr. Willus Sir. Thank you for the software. If worked great for me for quite sometime, but now if I select the option of 'postprocess with ghostscript', the application crashes. This option worked fine on the day that I had earlier installed Ghostscript PostScript and PDF Interpreter. Could you list a possible solution and also could you please give a link to the precise exe file of Ghostscript that needs to be installed.
Regards, Umesh |
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 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 |