![]() |
#1396 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16
Karma: 31960
Join Date: Apr 2016
Device: none
|
That looks nice... There are so many command line options but one has to practically know how to use them. And for GUI-people this is obviously much harder... Thanks again.
Off topic: In GUI I can't select PW3. It automatically changes to Kindle Voyage. Is this normal? |
![]() |
![]() |
![]() |
#1397 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
|
![]() |
![]() |
Advert | |
|
![]() |
#1398 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
Is there a way to produce a fixed-size djvu file -say 9×12cm with some margins- using k2pdfopt starting from an EPUB file? This online site can do it -without fixed size. If not, what would be missing? |
![]() |
![]() |
![]() |
#1399 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#1400 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@willus
Thanks for your reply. As far as I know, Calibre converts from djvu format but not to djvu format. I had expected k2pdfopt to have some DJVU capabilities, misunderstanding this excerpt (from the first page presentation) Quote:
Last edited by roger64; 06-23-2017 at 04:06 AM. Reason: k2 |
|
![]() |
![]() |
Advert | |
|
![]() |
#1401 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
So why the focus on djvu? Why not just convert the epub to a PDF if you want to be able to add margins to it? |
|
![]() |
![]() |
![]() |
#1402 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I have been converting for some years now (5?) Epub to 9×12 PDF using the Prince PDF plugin published here by Jellby. (a more recent Sigil version of it made by Doitsu exists).
djvu seems quite an interesting format and I am looking for a similar capability as it seems that it could -potentially and ideally- produce even smaller files (at the same quality level). Up to now, I found that the online site convertio produces directly nice documents in djvu format from epub but it does not seem to offer any choice for dimensions. (it produces standard A4 files). They offer a "conversion API" choice but I failed to spot any dimension choice there -maybe I missed something. Other sites pretending to convert Epub to djvu do much worse. Sobolsoft uses a two step process, converting first to a temporary PDF and them converting to djvu. I could already do the same, for example using Jellby's plugin and then the excellent opensource pdf2djvu software. But the output djvu file exceeds the PDF size which defeats my initial purpose... The STDU viewer is said to be able to view (among many other formats) Epub files but I failed to do so with every single Epub I used. Last edited by roger64; 06-24-2017 at 04:03 AM. |
![]() |
![]() |
![]() |
#1403 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
This would have been good information to put in your first post so that people did not waste time recommending things you had already tried.
I don't recommend the djvu format for converting your epubs into fixed page format unless your epubs are mostly images. With text-based epubs, converting to djvu creates a bitmap for each page, whereas converting to PDF should store the text from the epub directly as text strings (as convertio does) without the need for bitmaps. This results in a very small PDF file size when converting large, mostly text epubs unless those epubs have a lot of different fonts that get embedded into the PDF. This is probably why the pdf2djvu utility ends up creating a larger djvu file than the original PDF file. There is also the added benefit that the text in the PDF file will render perfectly (with smooth edges) at any magnification, whereas the text in the djvu bitmapped pages will not. The djvu format is optimized for archiving scanned documents, not for converting epubs. |
![]() |
![]() |
![]() |
#1404 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
Hi
Can k2pdfopt optimize pdfs without changing the files? I download pdfs from archive.org but you know those files are pain in the neck to browse on mobile devices, they are the pdf viewer killer. I am wondering if I can use this app to just optimize them without chaning orientation, order, page set up etc.Basically I want to keep the pdfs as is and just optimize thme such that they are much easier to read on my mobile devices. I have many pdfs from archive.org so I do not want to go back and try to download djvu files becasue they seems to be abit nice to browse but not many readers support djvu also. thanks Last edited by loviedovie; 06-24-2017 at 08:55 PM. |
![]() |
![]() |
![]() |
#1405 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Yes. The files from archive.org are viewer killers because they use JPEG-2000 compression (JPX encoding), which is very efficient, but more resource intensive for viewers to render. You can convert those PDFs to faster-rendering .png or .jpg with this command:
k2pdfopt -mode copy -odpi 300 sourcefile.pdf You can adjust the output DPI to suit your preference. The above command does "Flate" (.png) compression. If you prefer .jpg compression, you can add, for example, -jpeg 90 (90 specifying the quality level, 1 - 100). I've attached an example source and conversion using .png compression. You'll notice the converted file is much larger (5x) than the source file. This is the price you pay for the faster viewing. Also, by default k2pdfopt tries to optimize contrast and changes the gamma factor of the text to make it darker on e-books. If you want to disable this "tinkering" with the source file, add these options: -cmax -1 -g 1 If you want to see what encoding is being used in a PDF file, you can use the -i option (or the INFO button or 'i' or CTRL-D in the MS Windows GUI): k2pdfopt -i sourcefile.pdf Last edited by willus; 06-25-2017 at 10:32 AM. |
![]() |
![]() |
![]() |
#1406 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
willus
That is great news. I will give it a try. Thanks for your help. |
![]() |
![]() |
![]() |
#1407 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
wilus
I think that this will work for me. Is there a way to disable "exit" conformation when the command line is done? thanks |
![]() |
![]() |
![]() |
#1408 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
|
![]() |
![]() |
![]() |
#1409 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 295
Karma: 2139988
Join Date: Nov 2014
Device: bookeen
|
wıllus
How about optimizing for the fıle size without giving up much quality? I like that I can make archive.org pdfs usable again but there could be instances where I would like to go the other way. thanks |
![]() |
![]() |
![]() |
#1410 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,298
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
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 |