Sha256: f4e807e080b0d3e685e89329acbc509c3ea3c0f2750d53ceda3896fb9675e7e3
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
module Asposeslidesjava module RemoveRowColumn def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/Tables/' # Create an instance of Presentation class pres = Rjb::import('com.aspose.slides.Presentation').new # Get the first slide slide = pres.getSlides().get_Item(0) col_width = [100, 50, 30] row_height = [30, 50, 30] table = slide.getShapes().addTable(100, 100, col_width, row_height) table.getRows().removeAt(1, false) table.getColumns().removeAt(1, false) # Write the presentation as a PPTX file save_format = Rjb::import('com.aspose.slides.SaveFormat') pres.save(data_dir + "RemoveRowColumn.pptx", save_format.Pptx) puts "Removed Row & Column from table, 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/Tables/removerowcolumn.rb |
asposeslidesjava-0.0.1 | lib/asposeslidesjava/Tables/removerowcolumn.rb |