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-01-2021, 10:47 PM   #1861
sunny_hill
Junior Member
sunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 4
Karma: 49658
Join Date: Feb 2021
Device: none
Sure, I'd be happy to send over what I'm trying to convert. Is it possible for me to PM the document to you? I didn't see an option to PM you on your profile page (perhaps my account is too new).
sunny_hill is offline   Reply With Quote
Old 03-02-2021, 12:21 PM   #1862
sunny_hill
Junior Member
sunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Timesunny_hill possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 4
Karma: 49658
Join Date: Feb 2021
Device: none
Quote:
Originally Posted by sunny_hill View Post
Sure, I'd be happy to send over what I'm trying to convert. Is it possible for me to PM the document to you? I didn't see an option to PM you on your profile page (perhaps my account is too new).
Can't edit my post, so replying here. I found a picture that is exactly what I'm seeing. Ignore the red text, the "border" is what I'm seeing on the output PDF.
Attached Thumbnails
Click image for larger version

Name:	IMAG0081 copy.png
Views:	48
Size:	573.2 KB
ID:	185714  
sunny_hill is offline   Reply With Quote
Old 03-02-2021, 02:15 PM   #1863
Gaaks
Junior Member
Gaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 4
Karma: 49658
Join Date: Jun 2020
Device: KT4
Quote:
Originally Posted by willus View Post
@Gaaks--it would be most helpful if you could post some examples from the source PDFs that you discussed so that I could try some different options on them.
(Another way would be to send me samples via private message.)
I'm sorry, I ended up completely forgetting about my question here, I actually managed to figure the problem out myself, I'll copy and paste my earlier reply here around spoiler tags to not take so much space.

Spoiler:
Hello Willus, first I'd like to thank you for making this software, it's simply amazing, pretty much all material are in pdf format and k2pdfopt has made some unreadable think on kindle amazing to read.

But I am having problems with photo-copied/scanned material, the kind where there are two pages side by side, I tried using the 2 column feature to split the pages, but I guess that because the scans are low quality the detection isn't working well, some pages get split in the wrong areas and others just don't get split at all.

What I've been doing is, using the crop areas feature and selecting each page, and it works well, the output is in the correct sequence and it treats each crop as it's page, instead of processing the entire image, the problem here is simply that, I can't set a crop for each file, so because of their lack of centering and different sizes, the crop never lines up properly, so I have to do them one by one.

I've also been running into the issue of text getting split in badly centered pdfs, I've been putting -f2p -1 into the additional options like you recommend in the FAQ, but I couldn't the "bp" options in the gui.

And another less common problem is that, there are some high quality color scans, that have the beige color of the page, and the output ends up being grayscale with a gray background which is annoying to read, and I wanted to know if there's a way to make the output monochrome, -bpc 1 sometimes works but the text quality is really, and sometimes the output just comes out completely mangled, I've tried -wt[+] <threshold>, but I think I don't understand how to use that command, because even -wt[+] 0 doesn't output pure white, I was hoping to do something something like -wt[+] 60 since it's a rather dark grey.

I wanted to ask if you have some advice to get better results there, I'm using the GUI version provided on the website.


Turns out that for the -wt option, I was simply using it incorrectly, I was typing "-wt[+]" into the additional options field, instead of "-wt+", so of course the result wasn't what I wanted, after using "-wt+ <threshold>" I could get a good, readable output for my book.

As for my other problems, they aren't related to any specific source pdf files, just questions about the program's usage, for the split text problem -f2p -1 works perfectly, I simply didn't know what the faq meant by "select "bp" from the interactive menu", but as I believe this "bp" option would simply do the same as -f2p -1 I continued using the latter.

And for the crop area feature, the problem is that, although the program can convert multiple pdf files in sequence, you can't have a different crop area setting for each file, so you can't do multiple conversions on pdfs that need cropping in the same instance, and I suppose you wouldn't be able to set additional options for each file either, this isn't a major problem however, as you can simply open multiple instances of the program to convert the files in parallel, I simply wanted to know whether or not there was a way to have a crop setting for each individual file or not, but I don't think I expressed that well in my first reply. But I think that even if you added a feature like that I would end up not using it, as I've read about your program, I came to understand that it is faster to have multiple instances open for multiple file, than it is to convert multiple files on a single instance.

Again, thanks for making this amazing program.
Gaaks is offline   Reply With Quote
Old 03-02-2021, 10:19 PM   #1864
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,169
Karma: 9900000
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by sunny_hill View Post
Sure, I'd be happy to send over what I'm trying to convert. Is it possible for me to PM the document to you? I didn't see an option to PM you on your profile page (perhaps my account is too new).
Yes--that's weird. I haven't noticed that before (that some accounts cannot do PMs). You can go to this page and send me an e-mail. I'll reply back and you can send an attachment. Or you can just send a link.

Last edited by willus; 03-03-2021 at 10:35 PM.
willus is offline   Reply With Quote
Old 03-02-2021, 10:21 PM   #1865
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,169
Karma: 9900000
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by sunny_hill View Post
Can't edit my post, so replying here. I found a picture that is exactly what I'm seeing. Ignore the red text, the "border" is what I'm seeing on the output PDF.
Does your source file have that same black border, then? If so, you can probably do something like -m 0.25 to get rid of it. That will ignore any marks that are within 0.25 inches of the edge of your document.
willus is offline   Reply With Quote
Old 03-02-2021, 10:33 PM   #1866
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,169
Karma: 9900000
Join Date: Jun 2011
Location: California
Device: iPad
Quote:
Originally Posted by Gaaks View Post
Turns out that for the -wt option, I was simply using it incorrectly, I was typing "-wt[+]" into the additional options field, instead of "-wt+", so of course the result wasn't what I wanted, after using "-wt+ <threshold>" I could get a good, readable output for my book.
Ah yes--standard nomenclature for command-line options is to put optional parameters in brackets [ ]. So -wt[+] means that you can use -wt as a command-line parameter and optionally add a + at the end of it, -wt+.

Quote:
Originally Posted by Gaaks View Post
... I suppose you wouldn't be able to set additional options for each file either, this isn't a major problem however, as you can simply open multiple instances of the program to convert the files in parallel...
Looks like you figured out an efficient way to run k2pdfopt. The best way to do what you want (remember different options for different input files), if you know how to use scripts or batch files, is to create a script / batch file that contains the different k2pdfopt commands for each different file you want to convert. Then they are all saved in the script file and you can run it again if you need to. That is often how I run k2pdfopt, particularly when I want to try various command options but remember what I've tried before.
willus is offline   Reply With Quote
Old 03-03-2021, 12:57 PM   #1867
Gaaks
Junior Member
Gaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and TimeGaaks possesses cleverness exceeding the boundaries of Space and Time
 
Posts: 4
Karma: 49658
Join Date: Jun 2020
Device: KT4
Quote:
Originally Posted by willus View Post
... The best way to do what you want (remember different options for different input files), if you know how to use scripts or batch files, is to create a script / batch file that contains the different k2pdfopt commands for each different file you want to convert. Then they are all saved in the script file and you can run it again if you need to. That is often how I run k2pdfopt, particularly when I want to try various command options but remember what I've tried before.
Thank you for the advice.
Gaaks is offline   Reply With Quote
Old 03-03-2021, 02:33 PM   #1868
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 1,747
Karma: 7811809
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by willus View Post
Yes--that's weird. I haven't noticed that before (that some account cannot do PMs).
I believe it's only on new users with <5 posts.

Once they pass 5, then they're able to send PMs + edit posts.

It's mostly for spam prevention.
Tex2002ans is offline   Reply With Quote
Old 03-09-2021, 11:24 PM   #1869
Dhruva Sambrani
Junior Member
Dhruva Sambrani began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2021
Device: Kindle Gen8
Output with -n has weird selection

Output with -n -vb -2 and just -n has weird selection, where there are a lot of "hidden" lines and the whole page gets selected. This isn't that big an issue, but I want to convert it .mobi using calibre's ebook-convert which messes up the output on the converted pdf.

If I use the bitmap output, while the k2pdfopt output is absolutely fine, the mobi version of it is an image of each page, which loses the text selection and resizing and all the flexibility of -n

Dhruva Sambrani is offline   Reply With Quote
Old 03-11-2021, 10:19 PM   #1870
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,169
Karma: 9900000
Join Date: Jun 2011
Location: California
Device: iPad
I haven't tried using calibre's mobi conversion utility much, so I'm not familiar with what k2pdfopt settings work best with it. Try adding -ppgs to the k2pdfopt command and see if that doesn't improve the situation. Even turning -n off should still result in a PDF with a selectable text layer, though.

Have you tried loading the PDF into MS Word directly? If you have access to MS Word, that may be a better way to go to convert PDF to mobi. See my web page on the topic.
willus 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 01:54 PM.


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