Javatpoint Logo
Javatpoint Logo

Apache POI Page Size

We can get and set page size of the powerpoint page. To get the page size getPageSize() method is used whereas to set the size setPageSize() method is used.

The retrieved page size returns coordinates that are expressed in points. Lets see an example.

Apache POI Page Size Example

Output:

width: 720
height: 540

Lets see an example, to set page size.

Apache POI Setting Page Size Example

Output:

width: 720
height: 540

Slide size after setting new size.

width: 1024
height: 768





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA