Package com.aspose.slides

Examples of com.aspose.slides.Presentation.save()


            ((IAutoShape)shape).getTextFrame().setText("This is Placeholder");
        }
    }
   
    //Write the PPTX to Disk
    pres.save("data/AsposeReplaceTxt.pptx",SaveFormat.Pptx);

        // Status
        System.out.println("Process completed successfully.");
  }
}
View Full Code Here


    lbl.getDataLabelFormat().setShowValue(true);
    lbl.getDataLabelFormat().setShowSeriesName(true);
    lbl.getDataLabelFormat().setSeparator ("/");

    //Save presentation with chart
    pres.save("data/AsposeChart.pptx", SaveFormat.Pptx);
    System.out.println("Done");
  }
}
View Full Code Here

    //Setting Rotation Angle for Pie Chart Sectors
    chart.getChartData().getSeriesGroups().get_Item(0).setFirstSliceAngle(180);

    // Save presentation with chart
    pres.save("data/AsposePieChart.pptx", SaveFormat.Pptx);
   
    System.out.println("Done");
  }
}
View Full Code Here

   
    //Set Image Size
    opts.setImageSize(new Dimension(500, 400));
   
    //Save the prsentation to TIFF with specified image size
    pres.save("data/Aspose_PPT-TIFF.tiff", SaveFormat.Tiff, opts);

    System.out.println("Slide Converted to Image Successfully");
  }
}
View Full Code Here

      port1.getPortionFormat().getFillFormat().getSolidFillColor().setColor(Color.BLUE);
      port2.getPortionFormat().getFillFormat().setFillType(FillType.Solid);
      port2.getPortionFormat().getFillFormat().getSolidFillColor().setColor(Color.GREEN);

      //Save the PPTX to disk
      pres.save("data/FontFormatting_Aspose.pptx", SaveFormat.Pptx);
     
      System.out.println("Formatted Presentation Saved.");
  }
}
View Full Code Here

        shp.getLineFormat().getFillFormat().setFillType(FillType.Solid);
        shp.getLineFormat().getFillFormat().getSolidFillColor().setColor(Color.BLACK);
        shp.getLineFormat().setWidth(5);
   
    //Writing the presentation as a PPT file
    pres.save("data/ImageInSlides_Aspose.pptx", SaveFormat.Pptx);
       
        //Print Message
        System.out.println("Shapes added successfully.");
  }
}
View Full Code Here

    //Setting Plot area color
    chart.getPlotArea().getFormat().getFill().setFillType(FillType.Solid);
    chart.getPlotArea().getFormat().getFill().getSolidFillColor().setColor(new Color(PresetColor.LightCyan));

    //Save Presentation
    pres.save("data/AsposeFormattedChart.pptx", SaveFormat.Pptx);
    System.out.println("Done");
  }
}
View Full Code Here

        //Add text to the merged cell
        tbl.getRows().get_Item(0).get_Item(0).getTextFrame().setText("Merged Cells");

        //Save PPTX to Disk
        pres.save("data/AsposeTable.pptx", SaveFormat.Pptx);
        System.out.println("Program executed successfully");
  }
}
View Full Code Here

    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 3, 3, 30));

    chart.setType(ChartType.ClusteredCylinder);

    // Save presentation with chart
    pres.save("data/AsposeChartModified.pptx", SaveFormat.Pptx)
    System.out.println("Done");

  }
}
View Full Code Here

    //Accessing a slide using its index in the slides collection
    ISlide slide = pres.getSlides().get_Item(0);
    pres.getSlides().remove(slide); //Removing a slide using its reference

        //Writing the presentation as a PPTX file
        pres.save("data/DeleteSlides_Aspose.pptx", SaveFormat.Pptx);

        //Printing the status
        System.out.println("Slide removed successfully!");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.