Package com.aspose.slides

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


      //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/pptx4j/Tables-Aspose.pptx", SaveFormat.Pptx);
     
      System.out.println("Table Created 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/pptx4j/ChartModified-Aspose.pptx", SaveFormat.Pptx)
    System.out.println("Done");
  }
}
View Full Code Here

    //Add Picture Frame with height and width equivalent of Picture
    sld.getShapes().addPictureFrame(ShapeType.Rectangle, 50, 150, imgx.getWidth(), imgx.getHeight(), imgx);

    //Write the PPTX file to disk
    pres.save("data/pptx4j/ImageInSlide-Aspose.pptx", SaveFormat.Pptx);
  }
}
View Full Code Here

    //Set Play Mode and Volume of the Audio
    af.setPlayMode(AudioPlayModePreset.Auto);
    af.setVolume(AudioVolumeMode.Loud);
   
    //Write the PPTX file to disk
    pres.save("data/AsposeAudio.pptx", SaveFormat.Pptx);
   
    System.out.println("Audio Control Added.");
  }
}
View Full Code Here

    //Instantiate a Presentation object that represents a PPT file
    Presentation pres = new Presentation("data/presentation.ppt");
   
    //Saving the presentation to PDF document
    pres.save("data/AsposeConvert.pdf", SaveFormat.Pdf);
   
    //Display result of conversion.
    System.out.println("Conversion to PDF performed successfully with default options!");
       
        // 2. Conversion to PDF using custom options.
View Full Code Here

        //Define the PDF standard
        opts.setCompliance(com.aspose.slides.PdfCompliance.Pdf15);

        //Save the presentation to PDF with specified options
        pres.save("data/AsposeConvert2.pdf", SaveFormat.Pdf,opts);

        //Display result of conversion.
        System.out.println("Conversion to PDF performed successfully with custom options!");
  }
}
View Full Code Here

   
    //Removing a slide using its slide index
    pres.getSlides().removeAt(0);

    //Writing the presentation file
    pres.save("data/pptx4j/RemovedSlide-Aspose.pptx",SaveFormat.Pptx);

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

   
    //Add Smart Art Shape
    ISmartArt smart = slide.getShapes().addSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
   
    //Saving presentation
    pres.save("data/AsposeSmartArt.pptx", SaveFormat.Pptx);
         
    //=====================
    //Accessing Smart Art
    //=====================
    //Get first slide
View Full Code Here

    IComment[] Comments = slide.getSlideComments(author);

    // Accessing the comment at index 0 for slide 1
    String str = Comments[0].getText();

    pres.save("data/AsposeComments.pptx", SaveFormat.Pptx);

    if (Comments.length > 0)
    {
      // Select comments collection of Author at index 0
      ICommentCollection commentCollection = Comments[0].getAuthor().getComments();
View Full Code Here

  public static void main(String[] args)
  {
    //Instantiate a Presentation object that represents a PPT file
    Presentation pres = new Presentation();
    //Writing the presentation as a PPT file
    pres.save("data/NewPPT_Aspose.ppt", SaveFormat.Ppt);

    //Printing the status
        System.out.println("Aspose Slides added 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.