8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/asposeslidesjava/SmartArt/addsmartart.rb', line 8
def create_smartart_shape()
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
pres = Rjb::import('com.aspose.slides.Presentation').new
slide = pres.getSlides().get_Item(0)
smart = slide.getShapes().addSmartArt(0, 0, 400, 400, Rjb::import('com.aspose.slides.SmartArtLayoutType').BasicBlockList)
pres.save(data_dir + "SimpleSmartArt.pptx", Rjb::import('com.aspose.slides.SaveFormat').Pptx)
puts "Created smartart shape, please check the output file."
end
|