Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3900

Conversion from xhtml to epub loose svg images

$
0
0
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?

Viewing all articles
Browse latest Browse all 3900

Trending Articles