Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 07-12-2014, 05:39 AM   #856
Jorram
Junior Member
Jorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterJorram can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 2
Karma: 12678
Join Date: May 2011
Device: Amazon Kindle 3
Quote:
Originally Posted by willus View Post
@Jorram -- thank you for the post and nice comments. Unfortunately I have little first hand experience with calibre or MOBI files. But there should be a number of experts here at MR. I wonder if your post wouldn't be better off in the MOBI sub-forum? You could request that a moderator move it if you think so. Hopefully some others will chime in.
Thanks, Willus. I will do that, but first I tried to convert one of the more bothersome PDFs that I have. It's all over the place - pictures, boxes, columns, inconsistent margins, etc.

k2pdfopt did a pretty good job but it's still more unusable than usable so I was wondering if you could offer me some advice. Here are the problems I encountered:

1) The search is absolutely broken, at least in Adobe Reader. I wasn't able to find any phrase correctly - at all times the wrong places are highlighted. Wondering how this would behave on the Kindle itself. No idea how to fix this either.

2) The images are broken down and misplaced. I have attached a screenshot to illustrate this. You'd think it happens because the image is close to the page border but this is not the case - virtually all images are broken down in the same way, regardless of their position.

3) Some formatting is handled badly, in particular columns - my second screenshots shows this effect.

4) The cover (the first page) is gone entirely. I can't figure out why would that be.

I used the native pdf output and mostly kept everything default I think.

Any clues?
Thanks!
Attached Thumbnails
Click image for larger version

Name:	conversion.PNG
Views:	280
Size:	426.4 KB
ID:	125274   Click image for larger version

Name:	conversion2.PNG
Views:	269
Size:	341.2 KB
ID:	125275  
Jorram is offline   Reply With Quote
Old 07-12-2014, 11:20 AM   #857
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 Jorram View Post
...k2pdfopt did a pretty good job but it's still more unusable than usable so I was wondering if you could offer me some advice...
@Jorram -- I'll be able to do the best job helping you if you can post the PDF source file or send it to me via a private message.
willus is offline   Reply With Quote
Advert
Old 07-12-2014, 07:38 PM   #858
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 loudyou View Post
Segfault on Mac OS X 10.9 when using russian tesseract data
Selected options: -dev kpw -ocr t -ocrlang eng+rus

init_cube_objects(true, &tessdata_manager):Error:Assert failed:in file tessedit.cpp, line 237
Segmentation fault: 11 (core dumped)
Turns out this is an issue with k2pdfopt not correctly initializing languages that do not have the "CUBE/COMBINED" type of training files. This has been fixed for the next release.
willus is offline   Reply With Quote
Old 07-18-2014, 05:55 PM   #859
taschenbillard
Junior Member
taschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 5
Karma: 12692
Join Date: Jul 2014
Device: pw2
do i something wrong or is a 2mb pdf supposed to get to a size of 50mb after using k2pdfopt?
taschenbillard is offline   Reply With Quote
Old 07-18-2014, 08:31 PM   #860
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 taschenbillard View Post
do i something wrong or is a 2mb pdf supposed to get to a size of 50mb after using k2pdfopt?
Please see the k2pdfopt FAQ, third question.
willus is offline   Reply With Quote
Advert
Old 07-19-2014, 01:03 AM   #861
taschenbillard
Junior Member
taschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 5
Karma: 12692
Join Date: Jul 2014
Device: pw2
ah i see - native output was what i needed
thank you

works nice, but now i have some times lines with bigger font sizes.
i have v2.18 for win and run it with the presets for pw1, command line version is -dev kpw -gui+ -wrap- -n -ocr- -rt auto+ -col 1 (picture #1)

with -dev kpw -mode fw -gui+ -ls- -rt auto+ there is a additional margin on the left side sometimes (picture #3)
Attached Thumbnails
Click image for larger version

Name:	i2e.jpg
Views:	226
Size:	50.5 KB
ID:	125543   Click image for larger version

Name:	i1e.jpg
Views:	256
Size:	44.3 KB
ID:	125544   Click image for larger version

Name:	i3e.JPG
Views:	237
Size:	37.8 KB
ID:	125545  

Last edited by taschenbillard; 07-19-2014 at 02:49 AM.
taschenbillard is offline   Reply With Quote
Old 07-19-2014, 02:47 AM   #862
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 taschenbillard View Post
ah i see - native output was what i needed
thank you

works nice, but now i have some times lines with bigger font sizes.
i have v2.18 for win and run it with the presets for pw1, command line version is -dev kpw -gui+ -wrap- -n -ocr- -rt auto+ -col 1
any tips?
Try using -mode fitwidth, as shown in the second example on this page.
willus is offline   Reply With Quote
Old 07-19-2014, 02:52 AM   #863
taschenbillard
Junior Member
taschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 5
Karma: 12692
Join Date: Jul 2014
Device: pw2
i edited my previous post before i saw your answer

i did run meanwhile with -dev kpw -mode fw -gui+ -ls- -rt auto+ ,there is now a additional margin on the left side sometimes (the font size is ok here)

with -mode fp the margin left and right is always changing from page to page (the font size is ok here too)


and thanks for your help

--edit nevermind i think the book is the problem, i will have to crop odd and even pages differently because of the chapter numbers which appear in the top left/right corners
Attached Thumbnails
Click image for larger version

Name:	i3e.JPG
Views:	227
Size:	37.8 KB
ID:	125546  

Last edited by taschenbillard; 07-19-2014 at 03:24 AM.
taschenbillard is offline   Reply With Quote
Old 07-19-2014, 08:19 AM   #864
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 taschenbillard View Post
... i think the book is the problem, i will have to crop odd and even pages differently because of the chapter numbers which appear in the top left/right corners
If you don't need to see the chapter name on each page, you could just crop off the top xx inches of each page with -mt xx. Then you wouldn't have to crop odd and even pages differently. That large black horizontal bar separating sections might cause problems, though, if it is used on a lot of pages. If you need help cropping odd and even pages differently, search this thread for "-cropbox".

Last edited by willus; 07-19-2014 at 08:25 AM.
willus is offline   Reply With Quote
Old 07-19-2014, 10:26 AM   #865
taschenbillard
Junior Member
taschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 5
Karma: 12692
Join Date: Jul 2014
Device: pw2
i trimmed all 400 pages semi automatic per hand to remove the page numbers and the recurring chapter names and now it works perfect with
-dev kpw -mode fw -gui+ -ls- -rt auto+
everything in the the same font-size and layout is perfect and the margins are good; looks great, font is very crisp and good to read, actually no difference to mobi / epub format
great tool
also now from 2mb size to 1,5mb

the toc seems no longer to work now, do you know a tool that can edit these?

Last edited by taschenbillard; 07-19-2014 at 10:48 AM.
taschenbillard is offline   Reply With Quote
Old 07-19-2014, 10:56 AM   #866
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 taschenbillard View Post
the toc seems no longer to work now, do you know a tool that can edit these?
I don't know of a tool. K2pdfopt does not presently preserve inter- or intra-document links/references, but it does preserve the bookmarks/outlines table, but not all readers correctly make use of that. If your reader makes use if it, you can always create your own--see the -toc... options in the command-line usage.
willus is offline   Reply With Quote
Old 07-20-2014, 09:02 AM   #867
taschenbillard
Junior Member
taschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametertaschenbillard can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 5
Karma: 12692
Join Date: Jul 2014
Device: pw2
i arrived now at editing a few pages with pagenumbers at the bottom manually and removing the rest with -mt 0.73 , good advice, this goes a bit faster

new toc with -toclist also works great

Last edited by taschenbillard; 07-20-2014 at 09:18 AM.
taschenbillard is offline   Reply With Quote
Old 07-20-2014, 01:14 PM   #868
MaxStirner
Connoisseur
MaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic somethingMaxStirner has a certain pleonastic something
 
Posts: 71
Karma: 18500
Join Date: Apr 2013
Device: Kindle Touch, Paperwhite
Hi, I wanted to drop an idea (not a feature request at all) to think over. Do you think it would be beneficial to have some "compression" features in k2pdfopt given the fact that Kindle has a limited space availability (no memory card of course)? Most programs for this purpose are commercial and - worse still - Windows only, but I've been using some of them and the results are quite good, sometimes the PDF size is reduced by about 30% without any noticeable quality loss. Don't know exactly how it works but I've read that what the program does is - among other things - eliminating duplicates in the document structure.
I don't know if this is feasible for you to work on so as I said I'm only dropping an idea. Thaks for the great soft - seriously the best swiss knife for pdfs on small screens.
MaxStirner is offline   Reply With Quote
Old 07-20-2014, 06:58 PM   #869
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 MaxStirner View Post
Hi, I wanted to drop an idea (not a feature request at all) to think over. Do you think it would be beneficial to have some "compression" features in k2pdfopt given the fact that Kindle has a limited space availability (no memory card of course)? Most programs for this purpose are commercial and - worse still - Windows only, but I've been using some of them and the results are quite good, sometimes the PDF size is reduced by about 30% without any noticeable quality loss. Don't know exactly how it works but I've read that what the program does is - among other things - eliminating duplicates in the document structure.
I don't know if this is feasible for you to work on so as I said I'm only dropping an idea. Thaks for the great soft - seriously the best swiss knife for pdfs on small screens.
@MaxStirner -- thanks for the post. When writing native PDF files from k2pdfopt, I use the MuPDF library, and the native output essentially mirrors the source file, so the output file will be very similar in size to the source file. I'm not sure MuPDF has simple routines to compess the file further--I haven't looked into it carefully, but based on the write flags and the "pdfclean" utility that comes with MuPDF, it doesn't look like it. If there is a MuPDF expert that knows otherwise, please let me know.

The other type of k2pdfopt output is one bitmap per page, and there isn't much point in compressing that further since the images are saved as either PNG or JPEG, both of which are already compressed. There are settings in k2pdfopt that affect the size of the images, though (resolution, number of bit planes, JPEG quality, etc.). See my k2pdfopt FAQ, third question.
willus is offline   Reply With Quote
Old 07-25-2014, 05:09 PM   #870
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
k2pdfopt v2.20 released

This revision has several new features and bug fixes. See the web site for details.
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 08:02 AM.


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