Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 03-17-2017, 05:40 PM   #1
mike.foster
Member
mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.
 
Posts: 18
Karma: 84908
Join Date: May 2014
Device: iPad
k2pdfopt for yellow/brown pages

Hi,

I have a book whose pages are yellow/brown-ish (sample). It's for reading with an iPad. What command can I use with k2pdfopt to increase the contrast (no need to shrink)?
mike.foster is offline   Reply With Quote
Advert
Old 03-17-2017, 09:07 PM   #2
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: 887
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mike.foster View Post
Hi,

I have a book whose pages are yellow/brown-ish (sample). It's for reading with an iPad. What command can I use with k2pdfopt to increase the contrast (no need to shrink)?
Code:
 k2pdfopt -mode copy -c- -cmax 3 myfile.pdf
You can increase the cmax value if you like. This worked pretty well on your image. Make the value negative to force it (when it is positive, it just acts as a ceiling--k2pdfopt tries to pick an optimum).
Edit #1: See attachment for your sample (page 1) and the conversion (page 2).
Edit #2: Out of curiosity, I added to the attachment the default conversion done by Scan Tailor (v0.9.11.1) on page 3.
Attached Files
File Type: pdf file_plus_conversion.pdf (1.10 MB, 38 views)

Last edited by willus; 03-17-2017 at 09:32 PM. Reason: Added / Modified attachment
willus is offline   Reply With Quote
Old 03-24-2017, 03:11 PM   #3
mike.foster
Member
mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.
 
Posts: 18
Karma: 84908
Join Date: May 2014
Device: iPad
Thank you!
mike.foster is offline   Reply With Quote
Old 04-20-2017, 12:47 PM   #4
mike.foster
Member
mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.mike.foster invented the internet.
 
Posts: 18
Karma: 84908
Join Date: May 2014
Device: iPad
Unfortunately, it didn't work for the entire book (or even bigger samples than the one provided), see attachment. It's huge: 3.15GB
Attached Thumbnails
Click image for larger version

Name:	k2pdfopt-error.png
Views:	14
Size:	23.4 KB
ID:	156278  
mike.foster is offline   Reply With Quote
Old 04-21-2017, 12:34 AM   #5
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: 887
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mike.foster View Post
Unfortunately, it didn't work for the entire book (or even bigger samples than the one provided), see attachment. It's huge: 3.15GB
It doesn't look like the mupdf library is compatible with PDF files over 2 GB in size. You mght have to try using a separate tool (cpdf?) to break that PDF into two smaller files ( < 2 GB). How many pages is it?
[Edit: If practical, can you PM me a link to the smallest sample size you tested that doesn't work?]

Last edited by willus; 04-21-2017 at 09:38 AM.
willus is offline   Reply With Quote
Reply

Tags
k2pdfopt

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
k2pdfopt segmentation fault mike.foster PDF 3 11-23-2015 10:39 PM
Touch pdf and k2pdfopt on kobo metita Kobo Reader 7 08-23-2015 05:14 AM
Background color of pages yellow please55 Editor 2 12-28-2014 12:30 PM
Problem with reconverting k2PDFOpt to EBUB ittiandro Conversion 7 08-19-2014 06:43 PM


All times are GMT -4. The time now is 08:45 PM.


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