Hi.
I’ve made a jar which basically takes these step:
- parse an XML document
- create a words.Document doc = new Document(templateFile); where templateFile is a word 2003 .doc file
- merge some data from XML into Doc
- save the Doc as PDF into a byteArray: doc.save(ByteArrayOutputStream, SaveFormat.PDF);
- load the stream with pdf.kit.PdfContentEditor editor.bindPdf(new ByteArrayInputStream(ByteArray()));
- Attach a file to the pdf editor: editor.createFileAttachment(rect, “XML”, attachPath, 1, “Tag”);
- save the final documento to disk: editor.save(filePath);
“templateFile” is, as said, a Word 2003 document, which contains a couple of different Fonts.
If I execute the jar from NetBeans or from shell (cmd) with “java -jar…” all works fine. If I execute the jar (with the very same command “java -jar…”) with a system() call from within a C cgi-bin, the PDF produced loses all informations about Fonts.
Could it be an Aspose issue?
Thank you very much.
Could it be an Aspose issue?
Thank you very much.