Class: SVGtoEPS

Inherits:
Object
  • Object
show all
Defined in:
lib/svg-to-eps.rb

Overview

actual converter (just calls inkscapeā€¦)

Class Method Summary collapse

Class Method Details

.convert(input, output = nil) ⇒ Object



4
5
6
7
# File 'lib/svg-to-eps.rb', line 4

def self.convert(input, output = nil)
  output = input.to_s.gsub(/.svg/, '.eps') if output.nil?
  system "inkscape --export-text-to-path --without-gui --file=#{input.to_s} --export-eps=#{output.to_s}"
end