Sha256: 085275de4d33bee879bf28e457530da4c6d43681e479b59eb4c97f23b08c0168
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 Bytes
Contents
module Asposeslidesjava module ConvertingToPdf 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 + "Aspose.pptx") # Saving the PPTX presentation to Pdf format save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "Aspose.pdf", save_format.Pdf) 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/convertingtopdf.rb |
asposeslidesjava-0.0.1 | lib/asposeslidesjava/Presentation/convertingtopdf.rb |