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 09-22-2011, 01:00 PM   #1
DougAtHitplays
Junior Member
DougAtHitplays began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2011
Device: none
Insert text while converting PDF to EPUB

While converting PDF to EPUB using Calibre, is there a way to insert text into the EPUB file?

It would be the same text every time, for all files. The text could be inserted at the beginning of the document, or maybe better yet, periodically throughout the document.

It seems like this might be done with the metadata and/or the cover page or maybe CSS?

Any suggestions on the best way to do this are appreciated. thanks!
DougAtHitplays is offline   Reply With Quote
Old 09-22-2011, 05:19 PM   #2
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
You could try to use the search & replace feature for that, although you'd have to figure out some search pattern that occurs regularly... Personally, I think Sigil would be your best bet.
Manichean is offline   Reply With Quote
Advert
Old 09-22-2011, 07:30 PM   #3
theducks
Well trained by Cats
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: 29,763
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DougAtHitplays View Post
While converting PDF to EPUB using Calibre, is there a way to insert text into the EPUB file?

It would be the same text every time, for all files. The text could be inserted at the beginning of the document, or maybe better yet, periodically throughout the document.

It seems like this might be done with the metadata and/or the cover page or maybe CSS?

Any suggestions on the best way to do this are appreciated. thanks!
Insert a Background image JPEG (with your text) via a class in the stylesheet ?
theducks is offline   Reply With Quote
Old 09-22-2011, 10:48 PM   #4
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Or just put what you want in the comments field and insert a metadata jacket in the conversion options.
ldolse is offline   Reply With Quote
Old 09-23-2011, 12:02 AM   #5
LynnaMerrill
SF/F writer, programmer
LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.LynnaMerrill ought to be getting tired of karma fortunes by now.
 
LynnaMerrill's Avatar
 
Posts: 34
Karma: 509838
Join Date: Sep 2011
Location: USA
Device: Kindle 4
You can do it without Sigil. Epub is an archival format, like zip. Backup your epub so that you would have a copy in case something goes wrong. Then open it with a program you would normally use to open zip files, and unzip it (the epub file), like you would normally unzip a zip file. (If your program doesn't recognize the epub as zip, change its extension to zip. Unzip. And make sure you have a backup before that.) There will be a bunch of files, look at the html files and find where you want your inserted text to be. Insert it in the html, then zip the whole thing back and add this new zip wile to Calibre as one of your book's formats (I am assuming you have pdf and epub, add the zip, too). Now convert *the zip* to epub. Look at the resulting epub with Calibre's e-reader. You should see your change.

Again, make sure you back up your epub before you do anything with it.
LynnaMerrill is offline   Reply With Quote
Advert
Old 09-23-2011, 11:52 AM   #6
DougAtHitplays
Junior Member
DougAtHitplays began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2011
Device: none
Wow, thanks you for all the help. This forum rocks!

Actually inserting a background image with the Extra CSS has worked perfectly. That's exactly what we had in our PDFs that was not converting. Maybe I should have explained better.

We will have hundreds of PDFs to convert and this is an easy solution.

May all your karma grow.
DougAtHitplays is offline   Reply With Quote
Reply

Tags
calibre conversion text

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing text while converting PDF to mobi jhkaplan Calibre 1 12-12-2010 08:54 PM
Converting certain punctuations from text to epub greenapple Calibre 2 05-28-2010 08:27 PM
Converting pdf to text with Adobe Digital kezzie PDF 3 02-28-2010 04:14 AM
Converting PDF - Removing text at top of pages halljames Calibre 4 07-21-2009 07:00 AM
Converting text to PDF with a2ps chrylis iRex 7 11-23-2007 11:46 AM


All times are GMT -4. The time now is 07:27 PM.


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