Method: IsoDoc::PresentationXMLConvert#emf_to_svg
- Defined in:
- lib/isodoc/presentation_function/image.rb
#emf_to_svg(img) ⇒ Object
148 149 150 151 152 153 154 |
# File 'lib/isodoc/presentation_function/image.rb', line 148 def emf_to_svg(img) datauri_src = img.at(ns("./emf/@src")).text Vectory::Emf.from_datauri(datauri_src) .to_svg .content .sub(/<\?[^>]+>/, "") end |