Method: IsoDoc::PresentationXMLConvert#eps_to_svg_from_node

Defined in:
lib/isodoc/presentation_function/image.rb

#eps_to_svg_from_node(node, target_path = nil) ⇒ Object



167
168
169
170
171
172
# File 'lib/isodoc/presentation_function/image.rb', line 167

def eps_to_svg_from_node(node, target_path = nil)
  svg = Vectory::Eps.from_node(node).to_svg
  return svg.write(target_path).path if target_path

  svg.write.path
end