Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to copy, select and search text in ePub books using SumatraPDF
#1
Lightbulb 
Quote:
[Image: How-to-copy-select-and-search-text-in-eP...-issue.jpg]

SumatraPDF has been our go-to PDF and ePub reader for quite a few years, and I'm sure that some of you may be using it too.

I'll admit to using Microsoft Edge (Chakracore) occasionally to quickly view a document or two, but the solution is not as fast and usually not my top choice when it comes to that.

Tip: check out our EPUB reader overview here.

But with the new Edge-Chromium browser dropping support for ePubs and the fact that it will replace the other Edge, I stopped using it as a document viewer and rely solely on the light-weight reader.

Recently, a friend of mine asked me to help with an ePub. This was a textbook which he was trying to take notes from. But the problem was that the ePub's text could not be selected, hence there was no way to copy content from it.

Now, if you find yourself with an ePub and want to search for text, you may notice that the toolbar at the top (which has the find tool) won't be visible, so you can't do that.

There is a very simple way to fix this, and it only takes a few seconds.

How to copy, select and search text in ePub books using SumatraPDF

1. Click on the menu button (in the top left corner) of SumatraPDF's interface

2. Navigate to the Settings menu and click on Advanced Options.

3. A text document named "SumatraPDF-settings.txt" should open in Notepad (or your default editor).

4. Look for the line which says UseFixedPageUI = false. It's under the EbookUI settings.

5. Change the value from false to true, so it should read UseFixedPageUI = true.

6. Save the document, close SumatraPDF and re-open it.

Load the ePub document again in the program, and it should now have text that is selectable and searchable. That was easy, wasn't it?

There is a caveat to this. It breaks the document's formatting, but the extent of it depends on the ePub.

That's because the program doesn't support XHTML completely (ePub is based on HTML). So, when you force the change, it renders it in HTML and the CSS style elements which aren't supported are broken. If your ebook does not contain a lot of CSS formatting, it should work perfectly fine. I tested this with some free eBooks from Gutenberg and some textbooks, and the latter had some issues. But, there's an easy solution for this as well.

Even if the document does not display perfectly, you may still use the feature to copy the text that you are interested in before you restore the preference to its default value.
...
Continue Reading
[-] The following 1 user says Thank You to harlan4096 for this post:
  â€˘ ismail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
Thunderbird Supernova 115.10.2
Thunderbird Supern...harlan4096 — 15:31
VirtualBox 7.0.18 Build 162988
Changes in 7.0.168...harlan4096 — 15:25
Emsisoft Anti-Malware 2024.5.0.12426
Changes in 2024.5....harlan4096 — 15:25
Microsoft introduces Passkeys support fo...
Microsoft is celeb...harlan4096 — 15:08
Mozilla blames recaptcha issue in Firefo...
Mozilla confirmed ...harlan4096 — 15:04

[-]
Birthdays
Today's Birthdays
No birthdays today.
Upcoming Birthdays
avatar (26)akiratoriyama
avatar (46)Jerrycix
avatar (38)awedoli
avatar (80)WinRARHowTo
avatar (36)owysykan
avatar (47)beautgok
avatar (37)axuben
avatar (43)talsmanthago
avatar (29)mocetor
avatar (44)piomaibhaict
avatar (49)kingbfef
avatar (36)izenesiq
avatar (38)ihijudu
avatar (43)tiojusop
avatar (40)Damiennug
avatar (38)acoraxe
avatar (47)contjrat
avatar (39)axylisyb
avatar (42)tukrublape
avatar (39)iruqi
avatar (40)saitetib
avatar (34)ypasodiny
avatar (37)omapek
avatar (46)Geraldtuh
avatar (42)knigiJow
avatar (44)1stOnecal
avatar (48)Mirzojap
avatar (34)idilysaju
avatar (43)xclubDum
avatar (39)Stewartanilm
avatar (38)GregoryRog
avatar (43)mediumog
avatar (38)odukoromu
avatar (44)Joanna4589

[-]
Online Staff
There are no staff members currently online.

>