![]() |
#1756 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Reflow with selectable text?
Hi, I cannot seem to find an option to get a reflowed output for use with 6 inch ereaders, but which contains selectable text that I can highlight on my ereader.
Is it not possible at all with k2pdfopt? I would be surprised, since Koreader, which uses your code, does exactly that. The documents I read are A4 in size and with one single column, so using "native pdf" and "2 columns" to cut the page in half vertically is not a solution, as each line of text runs horizontally across the page's width. By the way, thank you so much for creating and maintaining this marvelous tool!!! Regards Last edited by pdurrant; 03-17-2020 at 08:32 AM. |
![]() |
![]() |
![]() |
#1757 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
Last edited by pdurrant; 03-17-2020 at 08:33 AM. |
|
![]() |
![]() |
![]() |
#1758 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3
Karma: 42956
Join Date: Mar 2019
Device: Kindle 3 Keyboard
|
Hello Willus!
Congratulations for your work! I am trying to find the optimal options for k2pdfopt for my Kindle Paperwhite 4, unfortunately I can't.. Whenever I try to convert it, the result is impossible to read. The pdf is attached, the language is Greek. I know that the pdf isn't the best, but I need it for my work. Can you please help me? Thanks in advance! |
![]() |
![]() |
![]() |
#1759 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
1. Separate each page into two but don't do any text re-flow. k2pdfopt -grid 2x1 -n- -ocr t -lang grc source.pdf 2. Same but with text re-flow k2pdfopt -grid 2x1 -fc- -n- -f2p 0 -wrap -ocr t -lang grc source.pdf 3. Even larger text (50% larger with -mag 1.5) k2pdfopt -grid 2x1 -fc- -n- -f2p 0 -wrap -ocr t -lang grc -mag 1.5 source.pdf I've attached the results of these three methods for just page 5 of your PDF. You'll notice the text is selectable and searchable, unlike your original. Last edited by willus; 03-14-2020 at 07:53 PM. |
|
![]() |
![]() |
![]() |
#1760 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3
Karma: 42956
Join Date: Mar 2019
Device: Kindle 3 Keyboard
|
Quote:
|
|
![]() |
![]() |
![]() |
#1761 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Do you mean crop the document like I've shown here so you don't get the page headers and page numbers (like I show in the first attachment)? Most pages are consistent, so the best way is to cover those pages and just live with the ones that it misses. You can pick specific pages to have different croppings, but that gets pretty involved. The GUI allows you to pick three different page ranges for applying different crop boxes. See attached screen shot. Here, instead of using the -grid 2x1 option, I have selected two crop boxes to apply to all pages.
|
![]() |
![]() |
![]() |
#1762 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Quote:
BTW, I have another problem with a few files like the one attached, where the words are not cut properly. Do you happen to know how to fix this? Many thanks. |
|
![]() |
![]() |
![]() |
#1763 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
When I run k2pdfopt v2.51a on your source document, I get the attached--it seems to break the words okay. What version are you running, or what command-line options are you using?
|
![]() |
![]() |
![]() |
#1764 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Please find she options in used in the attached image. I am using the same version as you.
|
![]() |
![]() |
![]() |
#1765 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
|
![]() |
![]() |
![]() |
#1766 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Quote:
A minor issue I have is that, in my workflow, I read pdfs on my ereader and annotate (highlight) them, and then continue working on them on my pc, annotating other stuff. The inconvenience I experience when using k2pdfopt is that, once the file is converted, the font looks too big on the pc screen. It would be great if we could somehow restore the original layout of the document to continue working with the file in windows (while not loosing the highlights previously made)... I got spoiled by the "on-the-fly" conversion made in koreader (which I don't use because there are bugs with the highlighting function). Again, thank you so much for this wonderful tool and for your patient guidance. |
|
![]() |
![]() |
![]() |
#1767 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#1768 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Quote:
However, I noticed that, when trying to select more than one word, in some places, the whole document gets selected, like in the attached image. Even in the version you posted previously of this file, it also happens, for example when trying to select several words from the word "aboutit", line 10, onwards. This really is problematic because I can't highlight words... Another question : is it possible to reduce the space between words? This time, to avoid asking a question which is already answered, I have looked carefully at the command line options documentation, but haven't seen anything related. As you can see in the attached image, the space between words is sometimes very wide... I have tried solving this both by setting a fixed font size and by playing with the resolution, to no avail. |
|
![]() |
![]() |
![]() |
#1769 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,303
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
k2pdfopt -j 0- ... (that's a zero, not an 'O'). |
|
![]() |
![]() |
![]() |
#1770 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13
Karma: 42646
Join Date: Mar 2020
Device: BQ Cervantes 4
|
Awesome! Both issues solved. Again, thank you very much!!
|
![]() |
![]() |
![]() |
Tags |
ebook apps, k5 tools, kindle tools, kindle touch, tools |
|
![]() |
||||
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 |