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 04-24-2015, 04:55 AM   #1051
mikbp
Junior Member
mikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy blue
 
Posts: 4
Karma: 13000
Join Date: Apr 2015
Device: Kindle 4 (...probably)
Thanks for your answer!

The cheating way is not useful for me (or super-very-incredibly tedious) because I want to convert more than 100 pdf's :P
And as the non cheating way doesn't order it well, I will have to stay with the original pdf's.

Quote:
Originally Posted by willus View Post
I'll try to think about ways I could get k2pdfopt to handle cases like this better. I may even have some options in there to help with this, but I'm not remembering...
What I can think of is this:
Would it work better if there was no picture but just a blank spot? I mean, maybe it would be easier for the software to "see" the column if it could manage to first extract the image and check for the columns later. I see that with your commands line, you manage to define the image box pretty well (I tried it with a bunch of other pdf's and it sometimes also takes some text lines in the box, but many times just the image). Maybe if that is polished to avoid having text in the image box you can in a first step extract the image from the text, then convert the text and finally add again (or not) the image somewhere.

I don't really know how your software works and I'm not into it so I don't think that's going to help you much, but I had to try :P

Thank you again,
m
mikbp is offline   Reply With Quote
Advert
Old 04-24-2015, 08:01 AM   #1052
markom
Banned
markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.
 
Posts: 488
Karma: 1080260
Join Date: Sep 2012
Device: sony prs t1 kindle dx ipad
If pictures are not that important to you, you can first quickly crop pdf using Briss app (separating columns cutting through pictures) and then use k2pdfopt.

Here I've left a few letters of the adjoining column partly visible too, but you can easily draw a cropping rectangles closer to the text of each column.

Maybe Willus can find a way to do this page cropping automatically throughout pdf, depending on the number of columns in the current page.
Attached Files
File Type: pdf 1_cropped_briss.pdf (248.1 KB, 68 views)
File Type: pdf 1_cropped_briss_k2opt.pdf (265.4 KB, 59 views)

Last edited by markom; 04-26-2015 at 04:25 PM.
markom is offline   Reply With Quote
Old 04-30-2015, 06:39 AM   #1053
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: 883
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mikbp View Post
Thanks for your answer!

The cheating way is not useful for me (or super-very-incredibly tedious) because I want to convert more than 100 pdf's :P
And as the non cheating way doesn't order it well, I will have to stay with the original pdf's.



What I can think of is this:
Would it work better if there was no picture but just a blank spot? I mean, maybe it would be easier for the software to "see" the column if it could manage to first extract the image and check for the columns later. I see that with your commands line, you manage to define the image box pretty well (I tried it with a bunch of other pdf's and it sometimes also takes some text lines in the box, but many times just the image). Maybe if that is polished to avoid having text in the image box you can in a first step extract the image from the text, then convert the text and finally add again (or not) the image somewhere.

I don't really know how your software works and I'm not into it so I don't think that's going to help you much, but I had to try :P

Thank you again,
m
Sorry for the late response. I still think I can get your case to work more reliably with some minor tweaking--maybe at the source code level. It's a good test case for me. But it does present a case where a processing algorithm like you describe would work better--try to find rectangular figure or table regions--regions that should not be re-flowed--first and then work around them. Right now k2pdfopt doesn't really process like that. I'm not 100% sure of all the details on how I'd do that, but it's on my list of things to work on.
willus is offline   Reply With Quote
Old 05-01-2015, 02:50 PM   #1054
mikbp
Junior Member
mikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy blue
 
Posts: 4
Karma: 13000
Join Date: Apr 2015
Device: Kindle 4 (...probably)
Hi people,
Quote:
Originally Posted by willus View Post
It's a good test case for me.
I'm glad you take as a challenge. =)

Quote:
Originally Posted by markom View Post
If pictures are not that important to you, you can first quickly crop pdf using Briss app (separating columns cutting through pictures) and then use k2pdfopt.
Is it possible to automate it for using it in more than 100 single-paged pdf files? That would be fine for me.

Thanks people
m
mikbp is offline   Reply With Quote
Old 05-01-2015, 08:09 PM   #1055
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: 883
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mikbp View Post
Hi people,

I'm glad you take as a challenge. =)


Is it possible to automate it for using it in more than 100 single-paged pdf files? That would be fine for me.

Thanks people
m
You can do something similar to Markom's Briss option by just using k2pdfopt as long as all 100 of the PDF files have the same number of columns in the same positions (i.e. cut each page into the three columns like you would with Briss):

k2pdfopt -evl 1 -cbox 0.2,0,2.73,10.85 -cbox 2.92,0,2.41,10.85 -cbox 5.31,0 1.pdf

Each new -cbox option boxes one column. If each file is a little different, those -cbox numbers above would change for each file, so you'd have to manually figure them out each time, which would be tedious. But I still think I can get k2pdfopt to go around the figure more correctly in an automated way. I need some time to investigate.
willus is offline   Reply With Quote
Old 05-03-2015, 02:25 AM   #1056
markom
Banned
markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.markom ought to be getting tired of karma fortunes by now.
 
Posts: 488
Karma: 1080260
Join Date: Sep 2012
Device: sony prs t1 kindle dx ipad
Quote:
Originally Posted by mikbp View Post
...

Is it possible to automate it for using it in more than 100 single-paged pdf files? That would be fine for me.

Thanks people
m
If you are using Briss or pdf-scissors you should merge all your pdf pages into one big pdf beforehand, using Acrobat or some free pdf merging/splitting tool.

If you are using k2pdfopt as Willus explained above by using three -cbox commands next to each other, you can put all the separated pdf files(pages) into one folder and open that folder in k2pdfopt.

You can quickly get precise coordinates for every cropping box by using that k2pdfopt' blue Margin Select" button, and drawing the first box then writing down those numbers shown on the top, then drawing the second and the third box getting their respective coordinates.

Then just enter those three -cbox commands into "Additional Options" field and k2pdfopt shall crop every pdf in the folder.

If some pdf pages contain wider or thinner columns you can just use wider columns cropping boxes for all the pages, because even if another column is partly visible, it's still comfortable to read the main column in portraite mode, 'cause 9 cm screen width of 6" reader is wide enough.

Last edited by markom; 05-03-2015 at 03:14 PM.
markom is offline   Reply With Quote
Old 05-03-2015, 07:54 AM   #1057
mike2003
Member
mike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic something
 
Posts: 11
Karma: 18680
Join Date: Aug 2013
Device: none
I'm sorry, but I'm with the same request.
If you do not want to make your program completely portable (with the settings in the file in the program folder).
Can you at least keep the settings are not in the overall basket of garbage?
HKEY_CURRENT_USER\Environment

but somewhere in a normal place like all other programs?
HKEY_CURRENT_USER\Software\Adobe
for example
HKEY_CURRENT_USER\Software\k2pdf

It's so uncomfortable, how it now works!
You can not even save the settings and transfer them to another computer!
(reg EXPORT or regedit do not work with one key)

but I do not want to lose my profile in case of failure of OS.

Last edited by mike2003; 05-03-2015 at 07:58 AM.
mike2003 is offline   Reply With Quote
Old 05-03-2015, 10:06 AM   #1058
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: 883
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mike2003 View Post
I'm sorry, but I'm with the same request.
If you do not want to make your program completely portable (with the settings in the file in the program folder).
Can you at least keep the settings are not in the overall basket of garbage?
HKEY_CURRENT_USER\Environment

but somewhere in a normal place like all other programs?
HKEY_CURRENT_USER\Software\Adobe
for example
HKEY_CURRENT_USER\Software\k2pdf

It's so uncomfortable, how it now works!
You can not even save the settings and transfer them to another computer!
(reg EXPORT or regedit do not work with one key)

but I do not want to lose my profile in case of failure of OS.
If you don't want to lose your k2pdfopt profile, then you can backup your environment variable settings, e.g. in MS Windows, from the command line:

set > d:\backup_folder\my_environment.txt

I do this anytime I switch to a new computer or re-install an OS. It's a helpful protective measure.
willus is offline   Reply With Quote
Old 05-03-2015, 04:01 PM   #1059
mike2003
Member
mike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic something
 
Posts: 11
Karma: 18680
Join Date: Aug 2013
Device: none
I do not need a file with a bunch of information on any topic. Only my profile. how can I do it? no way! Yesterday I asked for my profile. I can not transmit it to another person! and that in 2015!
--
for fun question:
why do not you develop a program for the development of rules for the windows? or the rules of portability, as do almost all? What could be the reason to come up with something new instead of the proven and convenient methods ???

Last edited by mike2003; 05-03-2015 at 04:07 PM.
mike2003 is offline   Reply With Quote
Old 05-03-2015, 04:51 PM   #1060
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: 883
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mike2003 View Post
I do not need a file with a bunch of information on any topic. Only my profile. how can I do it? no way! Yesterday I asked for my profile. I can not transmit it to another person! and that in 2015!
There are options under the "File" menu to save and restore your settings (see attached screen shot), making it possible to transfer your settings to another person or PC, and providing another way of making a backup.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	144
Size:	14.4 KB
ID:	137885  

Last edited by willus; 05-03-2015 at 04:53 PM. Reason: Added screen shot
willus is offline   Reply With Quote
Old 05-04-2015, 07:40 AM   #1061
mike2003
Member
mike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic something
 
Posts: 11
Karma: 18680
Join Date: Aug 2013
Device: none
Yes, of course, but we must do it hands each time.
and the other person will lose all its settings should if I want to give him only one profile.
mike2003 is offline   Reply With Quote
Old 05-04-2015, 08:42 AM   #1062
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: 883
Karma: 6370957
Join Date: Jun 2011
Location: California
Device: Kindle 2, iPad
Quote:
Originally Posted by mike2003 View Post
Yes, of course, but we must do it hands each time.
and the other person will lose all its settings should if I want to give him only one profile.
The settings are stored as a simple text file. It is not any harder to mix and match profiles from two different settings than it is to modify or save registry settings.
willus is offline   Reply With Quote
Old 05-05-2015, 07:04 AM   #1063
mike2003
Member
mike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic somethingmike2003 has a certain pleonastic something
 
Posts: 11
Karma: 18680
Join Date: Aug 2013
Device: none
this man does not even know what the registry. convenience for you in last place. I do not understand you, but you are the author. Good luck.
mike2003 is offline   Reply With Quote
Old 05-11-2015, 05:41 AM   #1064
mikbp
Junior Member
mikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy bluemikbp can differentiate black from dark navy blue
 
Posts: 4
Karma: 13000
Join Date: Apr 2015
Device: Kindle 4 (...probably)
Thank you Willnus and Markom!
With your suggestions it is much easier to read

Quote:
Originally Posted by willus View Post
I still think I can get k2pdfopt to go around the figure more correctly in an automated way. I need some time to investigate.
Great! For my own personal use it is fine already, but I plan to make a present for which I would very gladly use this extra function

Thank you guys again,
m
mikbp is offline   Reply With Quote
Old 05-19-2015, 12:21 PM   #1065
mahpooya
Junior Member
mahpooya began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2015
Device: galaxy s3
feature request: night mode without image inverse

please create an option like -neg but without images inverse
only texts and background inverse
mahpooya 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 06:53 PM.


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