Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2015, 04:09 PM   #1186
onlinespending
Junior Member
onlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshesonlinespending can read faster than his screen refreshes
 
Posts: 1
Karma: 14220
Join Date: Feb 2010
Device: B&N Nook
I noticed that k2pdfopt doesn't deal with drop caps (those large capital letters that begin a chapter that occupy two or more lines of text) particularly well. Are there particular settings that might improve its handling of those? thanks
onlinespending is offline   Reply With Quote
Old 10-11-2015, 04:43 PM   #1187
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by onlinespending View Post
I noticed that k2pdfopt doesn't deal with drop caps (those large capital letters that begin a chapter that occupy two or more lines of text) particularly well. Are there particular settings that might improve its handling of those? thanks
Not at the moment. I've tried to get k2pdfopt to be better about splitting lines that are spanned by a drop-cap when wrapping text (i.e. effectively ignoring the drop-cap and breaking it in two). It's not ideal but I figured it's preferable to leaving the lines joined together and being unwrapped. Correct drop-cap handling has been low on my list because it's a fair amount of effort for a relatively small gain, but I'll keep it on my radar.

Last edited by willus; 10-11-2015 at 04:46 PM.
willus is offline   Reply With Quote
Old 10-16-2015, 04:36 AM   #1188
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
Quote:
Originally Posted by willus View Post
Interesting. Do you know if it is the joining technique or just the sheer size of the PDF that reduces performance? You used pdfsam to join the files? Could you try jpdftweak also? Or could you try an overnight conversion that does it all in one piece (though as I recall this segfaulted k2pfdopt--so maybe just half of it?) to see how that compares? What would be best would be an A-B comparison between something produced only with k2pdfopt vs. something put together with various joining tools.
Sorry for the late reply, I get mail notifications about new posts each week.
Soooo.. the path I took to process the pdf was kind of the only one I could follow, I was not able to use k2pdfopt on the whole PDF without the crash, and even at half of the file the final PDF would still be a fraction of the whole size so it wouldn't tell us much even if the pdf worked better on the kindle, maybe the device is just not "enough" to process PDF's bigger than a certain size.
Also, pdfsam was the only one that worked for me to join the files, as jpdftweak didn't do anything, even after allowing up to 2GB of RAM to java applications, I waited eons and had no output.

Anyway, out of curiosity I am still converting the pdf with the latest version of k2pdfopt, let's see out it fares.

...played around, apparently by enabling "text reflow" disables "native pdf output", I realized it only later. By keeping text reflow disabled I could convert in native mode (albeit slow since only on one core) and the final size not only is very similar to the original file (200mb vs 250mb of your splitter command line batch some pages ago) but I retain color and text quality is better.
Have yet to test on the kindle tho, I just started assembling my 3d printer which arrived just now :P

Last edited by ephestione; 10-16-2015 at 12:29 PM.
ephestione is offline   Reply With Quote
Old 10-16-2015, 08:26 AM   #1189
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
Ok, this time the coversion went fine, but... well... the output file is 860MB compared to the original 200mb, quite overkill.
Used native pdf output, text reflow, and autocrop... I don't understand.
ephestione is offline   Reply With Quote
Old 10-16-2015, 08:40 AM   #1190
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ephestione View Post
Ok, this time the coversion went fine, but... well... the output file is 860MB compared to the original 200mb, quite overkill.
Used native pdf output, text reflow, and autocrop... I don't understand.
Glad to hear it worked, at least. If it crashes again, PM me the source file and your settings. Text re-flow overrides native PDF and turns it off. The two are incompatible for the way I convert the documents. That's why the converted document is larger than the source document--it's all bitmaps now. But it may process faster that way on your kindle. There's not a lot of processing or memory usage the kindle has to deal with to display bitmaps.

I've used jpdftweak on files up to 750 pages and 50 MB, but I had to increase the java memory size to > 1 GB. I like it better than PDFSAM for what I do. It's got a much smaller install footprint, and I can't get PDFSAM to work from the command line, even after spending 15 minutes trying to get it to work. But PDFSAM does seem to be able to handle larger files than jpdftweak (from the GUI).
willus is offline   Reply With Quote
Old 10-16-2015, 12:31 PM   #1191
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
(pasting here what I added in my previous message, as you already replied)


...played around, apparently by enabling "text reflow" disables "native pdf output", I realized it only later. By keeping text reflow disabled I could convert in native mode (albeit slow since only on one core) and the final size not only is very similar to the original file (200mb vs 250mb of your splitter command line batch some pages ago) but I retain color and text quality is better.
Have yet to test on the kindle tho, I just started assembling my 3d printer which arrived just now :P
ephestione is offline   Reply With Quote
Old 10-18-2015, 03:05 PM   #1192
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
How can I crop/remove the bottom of the page by 0.3in , I am using kobo glo 942px-4.42in height, i tried few options but it didn't work, the top works well.
and how can skip the first 2 pages.

Code:
-cbox- -ibox- -cbox 0in,0.3in,0in,0in

Last edited by oren64; 10-19-2015 at 01:52 AM.
oren64 is offline   Reply With Quote
Old 10-18-2015, 10:45 PM   #1193
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by oren64 View Post
How con I crop/remove the bottom of the page by 0.3in , I am using kobo glo 942px-4.42in height, i tried few options but it didn't work, the top works wall.
and how can skip the first 2 pages.

Code:
-cbox- -ibox- -cbox 0in,0.3in,0in,0in
I didn't make -cbox work the same way as the -m (crop margins) option, unfortunately. See the command-line usage page. You want this:

Code:
-p 3- -mb 0.3in
-p 3- to convert page 3 and up (skip first two page).
-mb 0.3in to crop the bottom 0.3 inches out.
willus is offline   Reply With Quote
Old 10-19-2015, 05:30 AM   #1194
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
Just copied the new native pdf job on the kindle and tested it. Globally smaller than the pdf's made with your multitasking suggestion, and text is top quality, on par with the native ebooks quality, plus page turning is as fast the smaller, splitted pixelated pdf's... images are clear and better... if only I started reading the book in this quality instead of picking up just now
Apparently pdfsam made somehow the smaller joined pdf's slower to read on the kindle, and since I couldn't succesfully run jpdftweak on those I wouldn't know if that's better.
ephestione is offline   Reply With Quote
Old 10-19-2015, 08:45 AM   #1195
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ephestione View Post
Just copied the new native pdf job on the kindle and tested it. Globally smaller than the pdf's made with your multitasking suggestion, and text is top quality, on par with the native ebooks quality, plus page turning is as fast the smaller, splitted pixelated pdf's... images are clear and better... if only I started reading the book in this quality instead of picking up just now
Apparently pdfsam made somehow the smaller joined pdf's slower to read on the kindle, and since I couldn't succesfully run jpdftweak on those I wouldn't know if that's better.
Yes, native PDF output does have all those advantages, though I don't think it's always faster to process than a bitmapped file--it depends on the PDF. Plus the text of the source file has to be laid out so that you can still read it without text re-flow, which isn't always the case. I'm surprised that pdfsam would be the culprit. I think one would really have to do more tests to confirm that for sure. My hunch would be that it's a combination of pdfsam and the size of the file.
willus is offline   Reply With Quote
Old 10-20-2015, 05:37 AM   #1196
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
I still am convinced pdfsam is to "blame". Separate 30mb-ish segments: text and images look like sh*t but I can turn pages relatively fast; same exact files merged together with pdfsam, 240mb-ish file, I may have to wait up to 3 seconds to view the next page. 200mb-ish native pdf conversion, text and images are brilliant, practically as fast as 30mb-ish sh*tty segments
ephestione is offline   Reply With Quote
Old 10-20-2015, 08:40 AM   #1197
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by ephestione View Post
I still am convinced pdfsam is to "blame". Separate 30mb-ish segments: text and images look like sh*t but I can turn pages relatively fast; same exact files merged together with pdfsam, 240mb-ish file, I may have to wait up to 3 seconds to view the next page. 200mb-ish native pdf conversion, text and images are brilliant, practically as fast as 30mb-ish sh*tty segments
The 30 MB segments are bitmapped, or native conversions? What if you just join two of them with pdfsam to make a smaller file? If they are bitmapped, what if they are native instead and then you join them? If you have the time to run those tests, I'd be curious to know (or PM me the file and I'll run my own tests).
willus is offline   Reply With Quote
Old 10-22-2015, 09:20 PM   #1198
sailco12
Junior Member
sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.sailco12 ought to be getting tired of karma fortunes by now.
 
Posts: 2
Karma: 2018162
Join Date: Oct 2015
Device: Nook Simple Touch
Post reading PDF files on an e-reader by convert to epub

The "k2pdfopt" software at http://willus.com/k2pdfopt/ is a real lifesaver for those wanting to read PDF files on their e-reader, especially those with 2 columns. It converts them to an e_pub file. However, apparently there is no traditional documentation section prominently linked from the present website.

The real instructions for usage seem to exist only in two videos. Unless people know that, they may give up on this fine software, so it would be better if the help page made this clear.

The video for Windows users is
"GETTING STARTED WITH THE WINDOWS GUI" at
http://www.willus.com/k2pdfopt/help/at.

For other users, see the video
"K2PDFOPT NATIVE PDF OUTPUT MODESK2PDFOPT NATIVE PDF OUTPUT MODES" at
http://www.willus.com/k2pdfopt/help/native.shtml

In particular, there is a help system which is displayed by running "k2pdfopt" in a terminal. It is shown beginning 214 seconds into the video.


It would also be great if the web page could link to instructions for Nook users. Their seems to be no mention of the Nook on the web site. As someone using Linux on the desktop and `Nook Simple Touch^ as a tablet, my method was to

download the correct file from http://www.willus.com/k2pdfopt/download/

install it by running sudo cp k2pdfopt /usr/local/bin

convert my 2 column PDF by running

k2pdfopt my.pdf -mode 2col -dev nookst -x

Until I realized that I needed to specify `native pdf output mode^ (the `-mode 2col^ includes this mode), all I saw on
my e-reader were question marks.
sailco12 is offline   Reply With Quote
Old 10-23-2015, 06:10 AM   #1199
ephestione
Member
ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.ephestione put the bomp in the bomp-a-bomp-a-bomp.
 
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
Quote:
Originally Posted by willus View Post
The 30 MB segments are bitmapped, or native conversions? What if you just join two of them with pdfsam to make a smaller file? If they are bitmapped, what if they are native instead and then you join them? If you have the time to run those tests, I'd be curious to know (or PM me the file and I'll run my own tests).
I will go with the second option, I MAY find the time to do that but probably you will receive a response in more than a month's time.
So sending you a link in PM.
The first 30mb blocks were done with the sample commands suggested by you to me a few pages ago to split the load of k2pdfopt over multiple instances hence multiple cpus by using the command start.
ephestione is offline   Reply With Quote
Old 10-23-2015, 08:41 AM   #1200
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,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
Thank you for your post.

Quote:
Originally Posted by sailco12 View Post
The "k2pdfopt" software at http://willus.com/k2pdfopt/ is a real lifesaver for those wanting to read PDF files on their e-reader, especially those with 2 columns. It converts them to an e_pub file....
This is not quite true. K2pdfopt converts to a PDF file (not an e-pub) tailored for the size of the device specified by the user.

Quote:
Originally Posted by sailco12 View Post
The real instructions for usage seem to exist only in two videos. Unless people know that, they may give up on this fine software, so it would be better if the help page made this clear.

The video for Windows users is
"GETTING STARTED WITH THE WINDOWS GUI" at
http://www.willus.com/k2pdfopt/help/at.

For other users, see the video
"K2PDFOPT NATIVE PDF OUTPUT MODESK2PDFOPT NATIVE PDF OUTPUT MODES" at
http://www.willus.com/k2pdfopt/help/native.shtml

In particular, there is a help system which is displayed by running "k2pdfopt" in a terminal. It is shown beginning 214 seconds into the video.
There are actually four videos on the web site (go to help page and look for "with video" in the left column):
1. MS Windows GUI (your link to this video doesn't work)
2. Text-based menu
3. Using a shortcut
4. Using Native output
Maybe I could highlight them better on the main page. Also, do you mean 2 minutes and 14 seconds rather than 214 seconds (which would be 3 minutes and 34 seconds)? It is not entirely clear to me what "help system" you refer to, unless it's the text-based menu from the 2nd video above.

Quote:
Originally Posted by sailco12 View Post
It would also be great if the web page could link to instructions for Nook users. Their seems to be no mention of the Nook on the web site.
I could put some more obvious tips on the main page and help pages about selecting the device.

Quote:
Originally Posted by sailco12 View Post
...Until I realized that I needed to specify `native pdf output mode^ (the `-mode 2col^ includes this mode), all I saw on
my e-reader were question marks.
Can you please post or PM me the source file and the options you used to convert it that resulted in all question marks?
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:59 AM.


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