![]() |
#2131 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2025
Location: Glory to Ukraine
Device: Kindle PW
|
It doesn't work
|
![]() |
![]() |
![]() |
#2132 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 105302
Join Date: Aug 2021
Device: Kindle PW2
|
Empty lines removal
Do we have any option to remove empty lines between paragraphs? These days I found more and more oddly formatted literature... Like no idents for new paragraphs but there are empty lines between each paragraph.
|
![]() |
![]() |
![]() |
#2133 |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,306
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Did you look at the PDF output from k2pdfopt on a PDF reader on your PC (e.g. view it in SumatraPDF)? Does it look right on your PC? What reader are you using on the kindle? Is it possibly the kindle reader that is the issue? Can you post your source and converted PDF (just a page or two, at least)?
|
![]() |
![]() |
![]() |
#2134 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,306
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#2135 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 80572
Join Date: Jan 2018
Device: Sony DPT-RP1, Kobo Forma
|
Removing symbol between paragraphs
Hello @willus
Thanks for the great app. I attempted to convert the book with symbols between paragraphs (4 pages attached- original.pdf). Below are the commands I used (I use terminal version on MacOS): Code:
-mode def -ws 0.200 -ac 0.3 -dpi 300 -wrap+ -fs 14 -dev kbh2ofs -a- -ui- -x -om 0.8cm -nt -90 -fc- -y -x As a result, the text around these symbols is not in order (I have marked in red, and the original order is highlighted in yellow). This only happens around symbols, nowhere else. The symbol confuses the conversion and should be removed beforehand. Could you help? Thanks in advance |
![]() |
![]() |
![]() |
#2136 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,306
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
I think that will do what you want. |
|
![]() |
![]() |
![]() |
#2137 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17
Karma: 80572
Join Date: Jan 2018
Device: Sony DPT-RP1, Kobo Forma
|
Thanks, it works, the text order is fully preserved.
|
![]() |
![]() |
![]() |
#2138 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 304158
Join Date: Jan 2016
Location: France
Device: none
|
Hello,
I have a couple of questions: 1. What's the right way to remove a header that extends to 47pt? -mt 47p didn't work — for some reason, it's displayed at the bottom of the page 2. Is there a way to get k2pdfopt to move footnotes at the bottom of the page? Here's the command I used: Code:
k2pdfopt.exe -o test.header.pdf -p 13-20 -mt 47p -mode fw -ls- -om 0.2 -w 758 -h 1024 -dpi 213 -fc- input.pdf -- Edit: And since footnotes obviously have a different height depending on the amount of text, I can't simply grab that section and move footnotes like Abbyy tries to do — sometimes successfully, sometimes not; Regardless, it moves them at the end of the chapter while I'd rather keep them in the page, for easier reading. Does a PDF wizard know if it's possible to 1) search for all paragraphs that start with a exponented/superscript number and 2) cut those and paste them at the bottom of the page? Last edited by Shohreh; 09-15-2025 at 06:54 AM. |
![]() |
![]() |
![]() |
#2139 | |
Fuzzball, the purple cat
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,306
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#2140 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 304158
Join Date: Jan 2016
Location: France
Device: none
|
Thanks. That did the trick to remove headers.
As for keeping footnotes at the bottom: When running pymupdf, I notice they are displayed in a smaller font size, possibly starting with a superscript (but not always: In this book, some footnotes start with a star followed by a superscript), so that would be a "simple" way to grab everything down to the end of the page, or move them all to the end of the chapter/book like Abbyy does and just include hyperlinks so the user can easily go back and forth. Code:
blocks = page.get_text("dict", flags=11)["blocks"] for b in blocks: # iterate through the text blocks for l in b["lines"]: # iterate through the text lines stuff = "" for s in l["spans"]: # iterate through the text spans print("") #4.8 = 4.800000190734863 if round(s["size"],1) == 4.8: print("Found footnote", s["text"]) stuff += s["text"] print(stuff) |
![]() |
![]() |
![]() |
#2141 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8
Karma: 105302
Join Date: Aug 2021
Device: Kindle PW2
|
Quote:
Thank you. |
|
![]() |
![]() |
![]() |
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 |