Hi,
We are using Document.copyStylesFromTemplate(Document template) whch is throwing NullPointerException.
Please find the sample code below:
public void testCopyStylesFromTemplate() throws Exception { Document sampleDoc = new Document("sample.docx"); Document wordDoc = new Document("target.docx"); wordDoc.copyStylesFromTemplate(sampleDoc); }
Please find documents in attachment Documents.zip (25.7 KB)
.
Looking forward to your reply.
Thanks
Manisha