How to add a title to a slide in java?
Thanks
Hi Yong,
I have observed your requirements and suggest you to please try using the following sample code on your end to add a title slide. Please share, if I may help you further in this regard.
public static void addTitleSlide(){//Instantiate Presentation objectPresentation pres=new Presentation();//Add Title slidepres.getSlides().addEmptySlide(pres.getLayoutSlides().getByType(SlideLayoutType.Title));//Remove default slidepres.getSlides().removeAt(0);//Savepres.save(“TestTitle.pptx”,SaveFormat.Pptx);}
Many Thanks,
Many thanks!
Next question: how to add text to the title slide?
Hi Yong,
I suggest you to please visit this documentation link for your kind reference for setting text in title slide. For your further knowledge, please also visit this documentation section as it will help you developing an understanding of how to manage shape and text in Aspose.Slides.
Many Thanks,