01-03-2015, 11:47 AM | #961 | |
Member
Posts: 15
Karma: 25800
Join Date: Dec 2014
Device: Nook Simple Touch
|
Quote:
Yes |
|
01-04-2015, 03:29 PM | #962 |
Member
Posts: 10
Karma: 12848
Join Date: Dec 2014
Device: Kindle PapperWhite
|
Hello, can i define the "region order priority"?
I mean, when K2pdfopt is generation, by default, a marked layout that looks like: --------- | 1 | 2 | ---------- | 3 | ---------- In this case, the second "page" generated will allways be below the first. Something like: --------- | 1 | 3 | ---------- | 2 | ---------- Sorry if i cant express well my question... By the way, great work. |
Advert | |
|
01-04-2015, 10:58 PM | #963 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
01-06-2015, 02:35 PM | #964 | |
Member
Posts: 10
Karma: 12848
Join Date: Dec 2014
Device: Kindle PapperWhite
|
Quote:
Without the GRID option: Page 1: In this page, the redbox order should be changed to 1, 3, 2. Indigo - Ophelia Keys.epub Page 2: In this page everything is allright. Indigo - Ophelia Keys.epub With the GRID option: Page 1: Works great, as expected. [Image violates guidelines for size - MODERATOR] Page 2: The table is divided... as expected too, but out of order and harder to read. Indigo - Ophelia Keys.epub The used PDF file is at: https://www.dropbox.com/s/a5rp5o2cdl...2C107.pdf?dl=0 Any advice? Last edited by Dr. Drib; 06-22-2015 at 02:07 PM. |
|
01-06-2015, 08:56 PM | #965 |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
You've done a great job experimenting with the options. I'm impressed. The cropbox option (-cbox) is the most powerful option because you can specify custom individual regions, and they can be page specific. E.g., try this in the "Additional options" box (keeping your other settings--e.g. margins--how they are):
-cbox1 0s,0s,0.5s,1s -cbox1 .5s,0s -cbox2- 0,0 The above options select two crop boxes on page 1 (-cbox1)--the left and right halves of the page. The -cbox2- 0,0 selects the full page for all of the rest of the pages (2 and up). I realize this is painful because you have to manually do the regions yourself. There's no automatic parsing that works for all of the pages of your particular PDF because the graphic at the bottom of page 1 screws up the column detection, as you've shown. I may eventually give the -grid option the ability to be page specific. Last edited by willus; 01-06-2015 at 08:59 PM. |
Advert | |
|
01-07-2015, 09:24 AM | #966 | |
Member
Posts: 10
Karma: 12848
Join Date: Dec 2014
Device: Kindle PapperWhite
|
Quote:
In above case, found out that working with -wt helped a little: [Image violates guidelines for size - MODERATOR] One day, a command to let k2pdfopt ignore areas without OCR/Textmarkings when defining coluns would be great. Something like: -corc[+] [i|t] <inches> Where: <inches> : max ocr/markings distance k2pdfopt will look for another text to define a colum. + : allow process of areas without oct/markings i : to include in the colum the area around markings defined by <inches> t : to not include in the colum the areas around markings defined by <nches> I know its too much, just a ideia. Last edited by Dr. Drib; 06-22-2015 at 02:11 PM. |
|
01-07-2015, 09:49 PM | #967 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
01-14-2015, 09:13 AM | #968 | |
Member
Posts: 10
Karma: 12848
Join Date: Dec 2014
Device: Kindle PapperWhite
|
Quote:
Indeed the idea to use OCR layer to detect columns/regions. That could help in cases where graphics could mess up region detection. For sample, this text: Using the command suggested earlier: -corc[+] [i|t] <inches> Where: <inches> : max ocr/markings distance k2pdfopt will look for another text to define a colum. + : allow process of areas without oct/markings i : to include in the colum the area around markings defined by <inches> t : to not include in the colum the areas around markings defined by <inches> k2pdfopt could use OCR layer ( in green ), add an offset of it ( in purple ) to detect columns/regions ( in red ): The command to this result, based on the sugestion, would be like: -corc i 1.0 The offset is used to detect near OCR layers, if another OCR layer touch the offset of another OCR layer, its is considered the same column/region. The "i" parameter would be used to add the offset area to the final region slice. If we use "t" instead, the offset area is still used to detect nearest areas, but not included in final region. Like: -corc t 1.0 If the offset is increased to the point of crossing another OCR area, the region should be the same, like: -corc i 2.0 This should help better use of regions in files with heavy background usage, but good OCR layers. Dont know if possible... =P |
|
01-15-2015, 03:54 AM | #969 |
Member
Posts: 21
Karma: 12696
Join Date: Aug 2012
Device: onyx m92
|
DEAR WILLUS
I want to learn 2 solutions 1. I want to get more number of rows of text per crop box and less magnification in lanscape mode. So is there any way to control crop box size and what are the commands i have to use? 2 In the grid mode, I want to get cuts with margins intact without having crop boxes applied so that I can get same text size page per page rather than variable text sizes. Please help me. GOODMAN. |
01-15-2015, 11:17 PM | #970 |
Zealot
Posts: 100
Karma: 224118
Join Date: Dec 2014
Device: Kobo H20 Aura
|
What should the settings be for h20?
|
01-16-2015, 12:17 AM | #971 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
k2pdfopt -cbox 0x,0x,1x,1x myfile.pdf Will trim each page exactly around the OCR text. See the -h usage in the command-line options. If you want a little pad around the OCR text: k2pdfopt -cbox -.05x,-.05x,1.1x,1.1x myfile.pdf |
|
01-16-2015, 12:24 AM | #972 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
2. If you want each section of the grid to go on its own page, unaltered, use the crop mode: k2pdfopt -mode crop -grid 2x2 ... |
|
01-16-2015, 12:27 AM | #973 |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
k2pdfopt -w 1080p -h 1310p -odpi 265 ...
It will be a selectable device in the next release. Thanks to the users who posted screenshots of Kobo devices in my screenshot thread. |
01-16-2015, 12:32 PM | #974 | |
Member
Posts: 10
Karma: 12848
Join Date: Dec 2014
Device: Kindle PapperWhite
|
Quote:
Tryed this command line (-cbox 0x,0x,1x,1x) in the previous case: https://www.mobileread.com/forums/sho...&postcount=964 But not used command line... Theres happening something odd. When i use the preview option to view the page 1, the red areas layout and form is one ( the correct one btw ). So i change to page 2, preview it, and go back to page 1. When i go back to preview page 1, red areas are different from the first time. If i generate the final file before previewing anything the file is one. If i generate after previewing page 2, the result os another. Same behavior as stated above. Any idea? File used: https://www.dropbox.com/s/a5rp5o2cdl...2C107.pdf?dl=0 |
|
01-17-2015, 11:19 AM | #975 | |
Fuzzball, the purple cat
Posts: 1,273
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
BTW, your dropbox link no longer works (I had the file already). |
|
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 |