Sha256: 4ceeeac745e5be2296c3aead241fe2da5801a5926602146d96cee2158e49d95a

Contents?: true

Size: 422 Bytes

Versions: 5

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

module Vectory
  class Ps < Vector
    def self.default_extension
      "ps"
    end

    def self.mimetype
      "application/postscript"
    end

    def to_eps
      convert_with_inkscape("--export-type=eps", Eps)
    end

    def to_emf
      convert_with_inkscape("--export-type=emf", Emf)
    end

    def to_svg
      convert_with_inkscape("--export-type=svg", Svg)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vectory-0.4.2 lib/vectory/ps.rb
vectory-0.4.1 lib/vectory/ps.rb
vectory-0.4.0 lib/vectory/ps.rb
vectory-0.3.0 lib/vectory/ps.rb
vectory-0.2.0 lib/vectory/ps.rb