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 01-27-2023, 10:14 PM   #1996
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by kos25k View Post
thanks,just compared and its same!Btw,do you have any idea on how to make reading on my kindle as much similar to prototype? (left) I would like to remove all blank areas from everywhere and smaller gaps between words..
Try unclicking "Re-flow text". That will at least crop out the excess margins on the left and right. It will not put words closer together. k2pdfopt does not have an option to do that.
willus is offline   Reply With Quote
Old 01-28-2023, 04:00 AM   #1997
kos25k
Connoisseur
kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!kos25k is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 57
Karma: 50592
Join Date: Jan 2023
Device: Amazon Kindle basic
Quote:
Originally Posted by willus View Post
Try unclicking "Re-flow text". That will at least crop out the excess margins on the left and right. It will not put words closer together. k2pdfopt does not have an option to do that.
Thank you.So,also no conversion to other format than pdf can do this? (gaps between words) Btw,if you compare carefully,i think that the gaps between words are smaller on prototype pdf than the converted.
kos25k is offline   Reply With Quote
Advert
Old 01-29-2023, 07:20 AM   #1998
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,969
Karma: 85104795
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I was baffled for a while by the Linux command line version and the menu, but eventually realised from Help (h) that I needed to do a final "enter" alone to execute, rather than q to quit, after picking options!
Quoth is offline   Reply With Quote
Old 01-29-2023, 07:22 AM   #1999
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,969
Karma: 85104795
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Is there a recommended command line setting for coloured scan PDFs from archive.org books that are often too dark and slow on eink?
Quoth is offline   Reply With Quote
Old 02-02-2023, 10:51 PM   #2000
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Quoth View Post
I was baffled for a while by the Linux command line version and the menu, but eventually realised from Help (h) that I needed to do a final "enter" alone to execute, rather than q to quit, after picking options!

Is there a recommended command line setting for coloured scan PDFs from archive.org books that are often too dark and slow on eink?
Yeah, sorry about that. I haven't put much energy into the linux menu options in some time. It is a poor man's gui, and not a very good one.

As for converting archive.org books, do you have a particular example in mind that you could post the link to? Archive.org typically displays slowly on e-inks because of the compression used (JPX/JPEG 2000). K2pdfopt can certainly be used to convert to "flate" compession (z-lib), which displays faster, but will result in a larger file size.

Last edited by willus; 02-02-2023 at 10:54 PM.
willus is offline   Reply With Quote
Advert
Old 02-04-2023, 08:12 PM   #2001
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
I recommended this for Quoth's archive.org download (with substantially yellowed pages):

k2pdfopt -mode copy -dpi 400 -c- -g 1 -bpc 4 -cmax -5 sourcefile.pdf

-dpi 400 for 400 dpi. The source file has a dpi of 600.

-c- to turn off color (make it grayscale)

-g 1 to turn off gamma correction (default of -g 0.5 makes things darker)

-bpc 4 to get 4-bit grey scale (the default)

-cmax -5 to force the contrast level to 5 to get the page background mostly white.
willus is offline   Reply With Quote
Old 02-07-2023, 07:39 PM   #2002
0jay
Junior Member
0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions
 
Posts: 5
Karma: 51986
Join Date: Jan 2023
Location: Melbourne, Australia
Device: AuraOne & Elipsa
Hey Willus, thanks for the tool and all the support you provide here.

I’ve noodled through this thread and haven’t spotted a general guide and am hoping you are aware of one posted somewhere.

I’m working with a plethora of various types of PDFs, hence general guide needed. I had a play and was unable to get things to adjust as expected from some pretty tidy academic journal PDFs (most puzzlingly margins didn’t seem to adjust when I thought I was inputing adjusted margin allowances). I’m not particularly comfortable in Terminal so started with what I could get from making Elipsa screen size settings in the Python GUI.

Can you direct me to something that might give me a bit of a better approach?

Thanks for your time.
Oscar
0jay is offline   Reply With Quote
Old 02-08-2023, 06:05 AM   #2003
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,969
Karma: 85104795
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
The terminal / text mode that has a menu to build option string works far better than the python GUI on Linux. The options do what they say, even though initially I was a bit confused.

Willus is very helpful.

Play with the command line/console version. The Python version is slow and seems to behave unexpectedly. The python GUI is only generating the command line anyway and the preview in it is too slow.
Quoth is offline   Reply With Quote
Old 02-08-2023, 07:52 PM   #2004
0jay
Junior Member
0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions
 
Posts: 5
Karma: 51986
Join Date: Jan 2023
Location: Melbourne, Australia
Device: AuraOne & Elipsa
Quote:
Originally Posted by Quoth View Post
The options do what they say

Play with the command line/console version.
I started with a string spat out by the GUI after configuring screen size there (copy/paste from the GUI into terminal).

Aware of the help menu but found adjusting the margins as per help resulted in the same margins I’d started with.

I general guide’d be good. If there isn’t one it might be an idea to write one. I’d volunteer but have at thesis to write this year, might be time enough after that.
0jay is offline   Reply With Quote
Old 02-08-2023, 10:21 PM   #2005
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by 0jay View Post
Can you direct me to something that might give me a bit of a better approach?
I've long been wanting to make a web page that is exactly what you describe--sort of a decision tree for when to use what options depending on what you want to do with your PDF. I've just never gotten around to it.

I think the main decision to start with is if you want to re-flow the text. If you want to re-flow the text, it sort of sends you down one set of options, whereas if you don't, and you just want to crop out various areas or trim margins, that sends you down another set of options.

Honestly I think the best thing you can do is post a few basic examples of the kinds of documents you want to convert for small screen reading and I can give you advice if you like. You can PM me docs as well.

The video on my web page, though dated, does walk through three types of conversions. It focuses on the MS Windows GUI, but if you keep your eye on the "command-line version of options" box, you can see how the GUI selections translate into command-line options you can use in Linux.
willus is offline   Reply With Quote
Old 02-12-2023, 02:47 PM   #2006
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by 0jay View Post
I general guide’d be good. If there isn’t one it might be an idea to write one. I’d volunteer but have at thesis to write this year, might be time enough after that.
I had started a guide a while ago and never made it available. I've added it to my help pages, though it is still a work in progress.
Attached Thumbnails
Click image for larger version

Name:	k2pdfopt_guide.png
Views:	81
Size:	98.0 KB
ID:	199700  
willus is offline   Reply With Quote
Old 02-19-2023, 04:35 AM   #2007
Lukusaukko
Enthusiast
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 42
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
I've been trying to use k2pdfopt to convert a multi-column pdf to single-column format so that I can then pass it on to calibre's conversion tool to convert it to epub with bold and italics (pdftotext which otherwise is ok with multicolumn pdf's loses italics and bolding), which seems to be working fine. But there's one issue I've discovered - setting the margins in the menu doesn't work: if I choose the "m" option and input a comma-separated list, it seems to ignore it, and only gives "-m 0,0,0,0" regardless of what you type in, and if I type in a single number, it sets "-m 1,0,0,0". I can circumvent it by setting up the margins on the command line, though, so it's just the UI.
This is on the Linux 64-bit 2.54 version.
Lukusaukko is offline   Reply With Quote
Old 02-19-2023, 04:46 AM   #2008
Lukusaukko
Enthusiast
Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.Lukusaukko ought to be getting tired of karma fortunes by now.
 
Posts: 42
Karma: 392326
Join Date: Feb 2023
Device: Kobo Libra 2
Quote:
Originally Posted by Lukusaukko View Post
I've been trying to use k2pdfopt to convert a multi-column pdf to single-column format so that I can then pass it on to calibre's conversion tool to convert it to epub with bold and italics (pdftotext which otherwise is ok with multicolumn pdf's loses italics and bolding), which seems to be working fine.
Actually, scratch that - it's only worked with two fairly simplistic pdf's, anything else just hangs calibre's conversion... still looking for a tool that could convert multi-column pdf to html or epub with character-level formatting intact.
Lukusaukko is offline   Reply With Quote
Old 02-19-2023, 08:49 AM   #2009
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,272
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Lukusaukko View Post
... I've discovered - setting the margins in the menu doesn't work: if I choose the "m" option and input a comma-separated list, it seems to ignore it, and only gives "-m 0,0,0,0" regardless of what you type in, and if I type in a single number, it sets "-m 1,0,0,0". I can circumvent it by setting up the margins on the command line, though, so it's just the UI...
Unfortunately I haven't touched the Linux UI in a while, so this is not a surprise. Like you said, you can override with a direct command-line option.
willus is offline   Reply With Quote
Old 02-21-2023, 02:49 AM   #2010
0jay
Junior Member
0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions0jay can understand the language of future parallel dimensions
 
Posts: 5
Karma: 51986
Join Date: Jan 2023
Location: Melbourne, Australia
Device: AuraOne & Elipsa
Quote:
Originally Posted by willus View Post
I had started a guide a while ago and never made it available. I've added it to my help pages, though it is still a work in progress.

Quote:
Originally Posted by willus View Post
the best thing you can do is post a few basic examples of the kinds of documents you want to convert for small screen reading and I can give you advice if you like. You can PM me docs as well.

The video on my web page, though dated, does walk through three types of conversions.
Thanks willus, I’ll snuffle around and see if I can’t get a better idea from these resources.
Oscar


Sent from my iPhone using Tapatalk
0jay is offline   Reply With Quote
Reply

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:02 PM.


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