Sha256: a06083b8be01c1e55b8a150e8606c136d01f1a8806ad7f554b1d8697089d32e7
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module Asposepdfjava module SvgToPdf def initialize() # The path to the documents directory. data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate LoadOption object using SVG load option options = Rjb::import('com.aspose.pdf.SvgLoadOptions').new # Create document object pdf = Rjb::import('com.aspose.pdf.Document').new(data_dir + 'Example.svg', options) # Save the output to XLS format pdf.save(data_dir + "SVG.pdf") puts "Document has been converted successfully" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asposepdfjava-0.0.2 | lib/asposepdfjava/Converter/svgtopdf.rb |
asposepdfjava-0.0.1 | lib/asposepdfjava/Converter/svgtopdf.rb |