Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement