Sha256: 667e0a0c545df44b811346e7821699373f495f89d9bdd348ae37a0ed46c02881
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
module Asposeslidesjava module PptToPptx 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 + "Presentation1.ppt") # Saving the PPTX presentation to PPTX format save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "Aspose.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/ppttopptx.rb |
asposeslidesjava-0.0.1 | lib/asposeslidesjava/Presentation/ppttopptx.rb |