Hello,
I am a newbie with docx4j and I have two questions.
I need to open a docx file and fill some sections. One of the things that I have to do is insert a PDF. I searched it and i found how insert like OLE object but the generated docx produces the message of wrong format. The code is:
FileInputStream is = new FileInputStream(pdfFile);
OleObjectBinaryPart olePart = new OleObjectBinaryPart();
olePart.setBinaryData(is);
Relationship relOleObject = template.getMainDocumentPart().addTargetPart(olePart); ...