Hi ,
I have a case where from a exisiting docx file i extract the document and save
the document which is in xml format to DB like below :
XWPFDocument olddoc = new XWPFDocument(fis);
String strXml = olddoc.getDocument().toString();
Now i want to open a new XWPFDocument with the existing body . So i did the
below :
XWPFDocument newPoiDoc = new XWPFDocument();
XmlObject xmlObj=XmlObject.Factory.parse(strXml);
newPoiDoc.getDocument().addNewBody().set(xmlObj);
newPoiDoc.save(os) ;
By doing this iam able to save a new doc file but when i open the file i am not
able to see any images which were there in old file and formatting is also lost
. How can i make sure not to loose fromatting and the images as in the old file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]