In this example we are going to create a slide then change the size of the slide.
Change Size of PowerPoint Slide Using Java
In this example we are going to create a slide then change the size of the slide.
setPageSize(java.awt.Dimension pgsize):
This method is used to change the size current page. The size of page is passed as parameter in this method. The return type is void. This method is defined as public in SlideShow class.
The code of the program is given below:
import org.apache.poi.hslf.HSLFSlideShow;
|
The output of the program is given below: