Hi Saranya,

> To display title at top and multiple tables to be generated inside single
> slide alighed.

If you want to generate a certain feature, you might need to reengineer it.
So create the sample PPTX in powerpoint and unzip the .pptx file - the 
slide1.xml is the first page.
Look for your title text - the surrounding xml tags have to be reproduced with 
the help of the
XSLFTable.getXmlObject() method.

If the xml tags aren't provided via the schema objects returned by 
getXmlObject(), you need to create them via XmlCursor 
(https://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html)


>> OR IS THERE A WAY TO READ pptx TEMPLATE AND GENERATE pptX USING java?

If you use a .pptx, just open it via XMLSlideShow.
To use a .potx, you need to change the content-type of the presentation:

ppt.getPackage().replaceContentType(
XSLFRelation.PRESENTATIONML_TEMPLATE, XSLFRelation.MAIN
);

> Have attached the sample template and this is what I would like to get
> generated .

I neither received an attachment nor found it on nabble.


Andi


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to