Page 1 of 1

how to add content to a slide?

PostPosted: Thu Aug 19, 2010 5:20 pm
by k_pal
I am new to docx4j/pptx4j.

My requirement is to generate pptx file using master slide.
I can create the new slide using my master slide but don't know how to insert data and image in it. Also I have to insert data in bullets format. I will appreciate if someone provide example code for this ASAP.

Thanks,
Kp

Re: Best way to create pptx file

PostPosted: Fri Sep 03, 2010 12:05 pm
by jason
Your best best is to create a slide in Powerpoint which contains what you want, then inspect the resulting XML.

Then duplicate that XML using pptx4j.

The CreateHelloWorld example shows you how you can add a shape to a slide. The docx4j Getting Started guide explains general principles which are equally applicable to pptx4j.

If you have specific questions, please post code showing how far you got, and we'll help from there.