Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-29-2011, 09:45 AM   #1
maurelioc
Junior Member
maurelioc began at the beginning.
 
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
maurelioc is offline   Reply With Quote
Old 04-29-2011, 09:55 AM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,465
Karma: 986493
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.
user_none is offline   Reply With Quote
 
Advertisement
Old 04-29-2011, 10:15 AM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,887
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by maurelioc View Post
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?
You can always open the converted ePub in Sigil and remove the images.
DoctorOhh is offline   Reply With Quote
Old 04-29-2011, 10:38 AM   #4
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
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.
penguinaka is offline   Reply With Quote
Old 04-29-2011, 12:09 PM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,086
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by maurelioc View Post
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
Others are suggesting how to remove.
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
theducks is offline   Reply With Quote
Old 04-29-2011, 12:32 PM   #6
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
lol the ducks nice tip
penguinaka is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
why ePub -> PDF pages as images? xristy Calibre 15 12-28-2010 09:42 PM
PDF to Epub - Images with Text ebahm Calibre 2 09-19-2010 04:23 PM
pdf to epub/breaking up images? dhume01 Calibre 1 07-06-2010 09:51 PM
title page & background images Nate the great ePub 13 07-28-2009 05:38 PM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 12:00 PM


All times are GMT -4. The time now is 07:53 AM.


MobileRead.com is a privately owned, operated and funded community.