Spire.Presentation

Spire.Presentation for Java 2.8.1 supports discontinuous printing, inserting round rectangle and getting name of theme layout

We're pleased to announce the release of Spire.Presentation for Java 2.8.1. This version adds three new features, including printing files discontinuously, inserting or appending round rectangle and getting the name of theme layout. Besides, the issues that occurred when copying slides, converting PPT to PDF and adding image for master are fixed successfully. See the content below for more details.

New Features:

  • Supports discontinuous printing.
  • Presentation ppt = new Presentation();
    ppt.loadFromFile(inputfile);
    PresentationPrintDocument document = new PresentationPrintDocument(ppt);
    
    //Set discontinuous print area
    document.selectSlidesForPrint("1", "2-6");
    ppt.print(document);
    ppt.dispose();
    
  • Supports inserting/appending round rectangle and setting the radius of round rectangle.
  • Presentation ppt = new Presentation();
    ppt.getSlides().get(0).getShapes().insertRoundRectangle(0,60,90,100,200,36);
    ppt.getSlides().get(0).getShapes().appendRoundRectangle(60,290,100,200,50);
    ppt.saveToFile("result.pptx", FileFormat.PPTX_2013);
    
  • Supports getting name of theme layout.
  • Presentation ppt = new Presentation();
     ppt.loadFromFile(file);
     for(int i =0;i < ppt.getSlides().getCount();i++)
     {    
         String name = ppt.getSlides().get(i).getLayout().getName();    
         System.out.println(name) ; 
     }
    

Bug Fixes:

  • Fixed the issue that the presentation could not be released successfully.
  • Fixed the issue that incorrect content was caused after copying slides from one presentation to another presentation.
  • Fixed the issue that the application threw an exception "Object reference not set to an instance of an object" when converting PPT to PDF.
  • Fixed the issue that the generated PPTX prompted an error after adding an image for master.

Click the link to download Spire.Presentation for Java 2.8.1: