Sha256: d00c6269ab8e209dfe7a4e243dee91f0d540619f6887d635ccf835c9cdf09e92
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
module Asposeslidesjava module ConvertingToNotes def initialize() # Converting Presentation to TIFF Notes convert_to_tiff_notes() # Converting Presentation to TIFF Notes convert_to_pdf_notes() end def convert_to_tiff_notes() 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 presentation save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "Notes.tiff", save_format.TiffNotes) puts "Document has been converted, please check the output file." end def convert_to_pdf_notes() 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 presentation save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "Notes.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/convertingtonotes.rb |
asposeslidesjava-0.0.1 | lib/asposeslidesjava/Presentation/convertingtonotes.rb |