04-29-2011, 08:45 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Apr 2011
Location: Campinas-SP Brazil
Device: ipad
|
Removing background images from pdf to epub
Hello folks,
I need to remove a background image when converting from pdf to epub. This background image is like a old paper with stains and points pretending to simulate an old document. When converting a similar document without this "noisy" background the epub file is about 500KB from a pdf of 1MB. But with this background the epub file size grows to 30MB. How may I filter this background? Is there any special option in Calibre to do this task or should I edit the pdf file before conversion? In the later case, which SW may I use to edit the pdf using Ubuntu? Thanks |
04-29-2011, 08:55 AM | #2 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
You can use Search and Replace. Use the builder button to the right of the search entry. Find the code where the background is defined and match on it. Leave the replace blank so it is removed. You may need to play with it a bit to get it right.
|
Advert | |
|
04-29-2011, 09:15 AM | #3 |
US Navy, Retired
Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
You can always open the converted ePub in Sigil and remove the images.
|
04-29-2011, 09:38 AM | #4 |
Quack! Quack!
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
|
You can highlight copy and paste the entire text to notepad, word pad, ms word or what not and then save as a .txt, .htm, .html, .rt or what not and then convert that to what u will. Or you could get the program adobe acrobat professional and get rid of the image that way and resave the .pdf because the acrobat pro allows you to do edits the reader doesnt.
if the text is also part of an image file withen the .pdf with no selectable text then you need acrobat pro to do text recognition first for you. so that it is selectable then you can do any of the above steps. |
04-29-2011, 11:09 AM | #5 | |
Well trained by Cats
Posts: 30,160
Karma: 57532198
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I will hint on how to add just ONE image and use it on every page (if you must ) Background-image: and background-repeat: More info at http://www.w3.org/TR/CSS2/colors.html Have fun |
|
Advert | |
|
04-29-2011, 11:32 AM | #6 |
Quack! Quack!
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
|
lol the ducks nice tip
|
03-30-2021, 04:40 AM | #7 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2021
Device: Kindle
|
You can do it with online prog. I remove background from image online with crello. There are a lot of other functions
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
why ePub -> PDF pages as images? | xristy | Calibre | 15 | 12-28-2010 08:42 PM |
PDF to Epub - Images with Text | ebahm | Calibre | 2 | 09-19-2010 03:23 PM |
pdf to epub/breaking up images? | dhume01 | Calibre | 1 | 07-06-2010 08:51 PM |
title page & background images | Nate the great | ePub | 13 | 07-28-2009 04:38 PM |
Pdf background darker than LRF/RTF background | LOL2005 | Sony Reader | 2 | 10-23-2007 11:00 AM |