Sha256: b2dc2e74bd8476dbc7da0de225745761f4eccaa6afc4ea44797556e35518d225
Contents?: true
Size: 630 Bytes
Versions: 2
Compression:
Stored size: 630 Bytes
Contents
module Asposeslidesjava module OdpToPptx def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate a Presentation object that represents a PPTX file pres = Rjb::import('com.aspose.slides.Presentation').new(data_dir + "Source.odp") # Saving the PPTX presentation to PPTX format save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "Source.pptx", save_format.Pptx) puts "Document has been converted, please check the output file." end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asposeslidesjava-0.0.2 | lib/asposeslidesjava/Presentation/odptopptx.rb |
asposeslidesjava-0.0.1 | lib/asposeslidesjava/Presentation/odptopptx.rb |