Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2017, 06:35 PM   #1396
sanon
Member
sanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the endsanon knows the complete value of PI to the end
 
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?
sanon is offline   Reply With Quote
Old 06-18-2017, 07:31 PM   #1397
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by sanon View Post
Off topic: In GUI I can't select PW3. It automatically changes to Kindle Voyage. Is this normal?
Yes, because they have the exact same resolution. They are equivalent (in terms of how k2pdfopt sees them).
willus is offline   Reply With Quote
Old 06-22-2017, 11:12 AM   #1398
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
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?
roger64 is offline   Reply With Quote
Old 06-23-2017, 12:21 AM   #1399
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by roger64 View Post
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?
Definitely not k2pdfopt. It neither reads epub files nor writes djvu files. This question probably belongs in the epub forum. Maybe calibre can do this?
willus is offline   Reply With Quote
Old 06-23-2017, 03:01 AM   #1400
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
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:
Or drop a folder full of PDF/DJVU files onto the k2pdfopt icon to batch process.

Last edited by roger64; 06-23-2017 at 04:06 AM. Reason: k2
roger64 is offline   Reply With Quote
Old 06-23-2017, 11:54 PM   #1401
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by roger64 View Post
@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)
Sorry--I can see the confusion after looking back at my web page. It's not entirely obvious, but k2pdfopt can only read djvu files, not write them. It can only write PDF files (and, more recently, png or jpeg files). My guess would be that the best solution would be to use one of the tools in the software forum to convert (or print) the ePub to a PDF file (not sure which of them have this capability, but presumably one or more does), and then I'm sure there are tools to convert PDF to djvu.

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?
willus is offline   Reply With Quote
Old 06-24-2017, 02:47 AM   #1402
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
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.
roger64 is offline   Reply With Quote
Old 06-24-2017, 11:31 AM   #1403
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
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.
willus is offline   Reply With Quote
Old 06-24-2017, 08:50 PM   #1404
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
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.
loviedovie is offline   Reply With Quote
Old 06-25-2017, 10:25 AM   #1405
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by loviedovie View Post
Can k2pdfopt optimize pdfs without changing the files? ...
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
Attached Files
File Type: pdf ts.pdf (339.6 KB, 326 views)
File Type: pdf ts_k2opt.pdf (1.65 MB, 222 views)

Last edited by willus; 06-25-2017 at 10:32 AM.
willus is offline   Reply With Quote
Old 06-25-2017, 11:17 AM   #1406
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
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.
loviedovie is offline   Reply With Quote
Old 06-25-2017, 01:38 PM   #1407
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
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
loviedovie is offline   Reply With Quote
Old 06-25-2017, 06:53 PM   #1408
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by loviedovie View Post
... Is there a way to disable "exit" conformation when the command line is done?
Yes: Use the -x option. Use -ui- to disable user menu prompting also.
willus is offline   Reply With Quote
Old 06-29-2017, 10:47 PM   #1409
loviedovie
Addict
loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.loviedovie ought to be getting tired of karma fortunes by now.
 
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
loviedovie is offline   Reply With Quote
Old 07-02-2017, 12:00 PM   #1410
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by loviedovie View Post
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
At present, k2pdfopt does not have JPEG-2000 encoding capability. Even if it did, I gather from what I've researched so far that the encoding process is not entirely trivial and has many tuneable parameters. If you want to see how to get smaller output file sizes from bitmapped k2pdfopt output (jpeg or png), then see the file size help page.
willus is offline   Reply With Quote
Reply

Tags
ebook apps, k5 tools, kindle tools, kindle touch, tools


Forum Jump

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


All times are GMT -4. The time now is 06:05 PM.


MobileRead.com is a privately owned, operated and funded community.