View Single Post
Old 05-19-2015, 11:10 PM   #1
pwessel
Junior Member
pwessel began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: iPad, iPhone
Conversion from xhtml to epub loose svg images

Thanks for making calibre available. Apologies if I am making a rookie error, but I have a Latex-driven workflow that produces a xhtml book with numerous svg illustrations. The xhtml file view fine in a browser. I then run

ebook-convert DA1_book.xhtml DA1_book.epub

but find that the hrefs to svg files in the various xhtml sections are gone, yet all the svg files are included in the epub file. E.g, the original lines like

<div id="Ch1.F1" class="ltx_figure"><object data="Fig1_dataclasses.svg" id="Ch1.F1.g1" class="ltx_graphics ltx_centering" width="470" height="133" alt=""/>

are not present in the epub archive but all the SVG files are there. When importing the epub (or xhtml) into calibre and trying to view it I get the error "No book with id 13 present". Opening the epub in iBooks also shows no figures. Am I missing an option?
pwessel is offline   Reply With Quote