Sha256: 1b9d0e3e81fb510f4c4e39c1fdd1421d56877c568c7ef04a7355d70646954ea9
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
module Asposepdfjava module PdfToSvg def initialize() # The path to the documents directory. data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Open the target document pdf = Rjb::import('com.aspose.pdf.Document').new(data_dir + 'input1.pdf') # instantiate an object of SvgSaveOptions save_options = Rjb::import('com.aspose.pdf.SvgSaveOptions').new # do not compress SVG image to Zip archive save_options.CompressOutputToZipArchive = false # Save the output to XLS format pdf.save(data_dir + "Output.svg", save_options) 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/pdftosvg.rb |
asposepdfjava-0.0.1 | lib/asposepdfjava/Converter/pdftosvg.rb |