SHARE
TWEET

Untitled

a guest Mar 19th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class PowerPoint {
  2.  
  3.   public static void main(String[] args) throws Exception {
  4.     // we are new PPTX Presentation
  5.     XMLSlideShow ppt = new XMLSlideShow();
  6.     // we add a new slide
  7.     XSLFSlideMaster defaultMaster = ppt.getSlideMasters().get(0);
  8.     // retrieving a the slide layout
  9.     XSLFSlideLayout layout = defaultMaster.getLayout(SlideLayout.TITLE_ONLY);
  10.  
  11.     // we create the first slide
  12.     XSLFSlide slide = ppt.createSlide(layout);
  13.    
  14.     // ...
  15.   }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top