09-04-2015, 05:15 PM | #1141 |
Member
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
|
Hi willus
I am using latest version in x64 compile on an i7 laptop, and since I am converting a 1100+ pages PDF (first time aroung it crashed slightly after half file, but maybe it was something else than k2pdfopt itself and I am on my second -slow- pass, will let you know how it goes), I found myself whishing there was multithreading, as my octacore is quite underloaded at about 18%, for a single core output. Found a GUI which did just that, but its website is not updated since a couple of years, so I did not dare to try it right off the bat, would it be feasible to implement on k2pdfopt itself? Ideally in the executable or even as a workaroung in the builtin GUI by processing multiple pages intervals and then merging at the end? |
09-04-2015, 06:43 PM | #1142 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
All I can advise is that you do it manually--it's not very hard to write a batch script that launches multiple instances of k2pdfopt, each converting 100 pages at a time (or whatever you want), and then joins the outputs together using PDFSAM or jpdftweak. E.g. Code:
start k2pdfopt -gui- -ui- -x -o out01.pdf srcfile.pdf -p 1-100 start k2pdfopt -gui- -ui- -x -o out02.pdf srcfile.pdf -p 101-200 start k2pdfopt -gui- -ui- -x -o out03.pdf srcfile.pdf -p 201-300 start k2pdfopt -gui- -ui- -x -o out04.pdf srcfile.pdf -p 301-400 ... rem When all conversions are done: jpdftweak -i out01.pdf -i out02.pdf -i out03.pdf ... -o finaloutput.pdf del out01.pdf out02.pdf out03.pdf ... |
|
Advert | |
|
09-04-2015, 07:00 PM | #1143 |
Member
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
|
Yes, I realized that GUI did exactly that, doing the same on yours was the least effort workaround idea, but that was a lazy request on my part given I could very well doit myself as you said.
Regarding this 1100+ ages PDF I just fed to k2pdfopt, this time it reported the conversion to have gone ok, but the output file was less than 16mb against an original 200mb, and couldn't be opened by sumatra... so I guess something went wrong even if the gui didn't realize it. Maybe 1000+ pages is just too much, and multithreading it over several instances with lesser amount would be the only viable option. |
09-04-2015, 08:57 PM | #1144 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
09-05-2015, 03:28 AM | #1145 |
Member
Posts: 18
Karma: 67890
Join Date: Jul 2015
Device: Kindle Paperwhite 3
|
It's awful kind of you to be willing to test a 200+MB pdf file to check for errors, seriously, but then it wouldn't be using your time wisely as given the size of the document the only decent way of converting it, even if it wasn't for k2pdfopt crashing by the size, is to multi-instance, as I just did. Also the command line interface (following your syntax) seemed faster than what the gui achieved. Converted the document in 8 separate files in a whoosh, now to merge them and test on kindle
Thank you! EDIT: on a side note, an automated script would be best in that it will be able to evenly distribute the pages number between instances, and automatically merge them with almost no intervention for the user, but that's only if you really have spare time for that; I understand those constraints, being a hobbist coder myself. EDIT 2: I tried jpdftweak, and either it's not working for me, or it is so counterintuitive I am not doing the correct thing, but it's been working for a long while now and I have still no output (had to increase java maximum useable ram as well). PDFSAM tho, is definitely straightforward and in a nice graphical interface told me the percentage of processing and had the merged file ready in a short while, I am reading on my kindle now. Last edited by ephestione; 09-05-2015 at 07:17 AM. |
Advert | |
|
09-05-2015, 07:44 AM | #1146 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
09-19-2015, 03:27 PM | #1147 |
Junior Member
Posts: 1
Karma: 14224
Join Date: Sep 2015
Location: Alabama
Device: none
|
The download page for k2pdfopt appears to be broken. When one enters the captcha and clicks on the download link it takes you, after about 10 seconds, to a page that says "Download Expired." Evidently one has only microseconds before the captcha expires. Is there any other place where k2pdfopt can be downloaded? I need the latest 32 bit linux version. I am a retired mathematics professor and have hundreds of pdf math study guides, exercise sets, exams + keys, etc that were originally formatted for letter size paper and would like to convert them to a smaller format for ebooks and make them available for free for undergraduate students. It appears that k2pdfopt may be exactly what I am looking for if only I could obtain a copy.
|
09-19-2015, 04:59 PM | #1148 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
09-20-2015, 11:50 PM | #1149 |
Nameless Being
|
Hi! I am using k2pdfopt on Mac OS X (Yosemite). I am trying to convert an eBook I bought so I can read it from my Kindle (Voyage). Unfortunately, I keep getting "Segmentation fault: 11". What settings should I try altering?
|
09-21-2015, 08:40 AM | #1150 |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Are you sure it's a PDF ebook? Most ebooks that you buy are not PDF. If it is a PDF file, can you post a link to it or PM me a link? And can you post a screenshot of your conversion that shows your settings? That would help.
|
09-23-2015, 06:28 AM | #1151 | |
Nameless Being
|
Quote:
device -> amazon voyage co -> 2 columns, everything else to default Edit: I have a weird suspicious that it is simply a scanned text book and not an actual digital document :S Last edited by alex2407; 09-23-2015 at 07:50 AM. Reason: Added more info |
|
09-23-2015, 08:44 AM | #1152 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
1. It's a very large book--900 pages, so you may want to try converting a subset of it--a couple chapters at a time or something, or an even smaller number to start out with to see that you are getting a conversion you like before you convert the whole thing. The sheer size may be causing the seg fault, or just one particular page may be causing it, and you should then let me know which page that is. 2. It's not scanned. You can tell just by zooming way in on the text. It doesn't pixelate even at extreme magnifications. 3. Try turning on the "show marked" option: Add -sm to the command options. Then look at the ..._marked.pdf to see how k2pdfopt is parsing your pages. 4. This is a tough PDF to convert--the formatting varies quite a bit page to page. K2pdfopt really started as something to convert journal papers which have consistent formatting throughout. I've tried to adapt it to other types of PDFs as much as possible, but there will likely be some pages that don't convert well. 5. Most pages have notes in the margins, so you should use the "notes" options by adding these to the command-line options: -nle .2,.4 -nlo .6,.8 I recommend starting with something like this: Code:
k2pdfopt -nle .2,.4 -nro .6,.8 -mb 1 -dev kv psych.pdf -p 100-120 -sm |
|
09-23-2015, 08:48 AM | #1153 | |
Nameless Being
|
Quote:
|
|
09-23-2015, 08:48 AM | #1154 |
Connoisseur
Posts: 59
Karma: 14210
Join Date: Jul 2015
Device: none
|
Hey Willus, thank you so very much for your k2pdfopt. Reading pdf's on my ereader is so much better now.
A little wish: it would be great, when batch-converting many PDFs with wrapping, to have a way to get all the output to have about the same-sized body text. So: when using k2pdfopt with wrapping, I wish there were a way to directly control the size of text (like setting a median text height, which will scale everything proportionately). -odpi controls text size indirectly but text size can get inconsistent across files of course. Whereas i'm most interested in batch-converting and getting the text to a consistent not-too-large, not-too-small size on the ereader. (or is this already possible?) |
09-23-2015, 08:51 AM | #1155 |
Nameless Being
|
Sorry for asking two questions at the same time (but gotta read the chapters for the lectures =/ ). So here's my question. I cannot enlarge the text on another PDF book (PMed) the link. I tried -odpi from 150 to 560 but the text size remains the same. What gives?
|
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
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 |