Java Blank PPT Example

Chapter: Apache POI Last Updated: 22-07-2017 13:51:07 UTC

Program:

            /* ............... START ............... */
                
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.xslf.usermodel.XMLSlideShow;

public class JavaBlankPPT {

	public static void main(String args[]) throws IOException {

		// creating a new empty slide show
		JavaBlankPPT ppt = new JavaBlankPPT();

		// creating an FileOutputStream object
		File file = new File("example1.pptx");
		FileOutputStream out = new FileOutputStream(file);

		// saving the changes to a file
		ppt.write(out);
		System.out.println("Presentation created successfully");
		out.close();
	}
}
                /* ............... END ............... */
        

Output


Java Blank PPT Example

Tags

Blank PPT Example, Java, Apache POI

Similar Programs Chapter Last Updated
Java Add Image To Slide Apache POI 22-07-2017
Java Apache POI Workbooks Apache POI 11-09-2016
Java Write Excel File Apache POI 11-09-2016

1