Hello everybody
Please excuse me for my poor english.
I'm creating an application that get an HTML Table and then generate a Word Document.
The problem is that I need to convert the created document into PDF format, and when a try to do this, the result PDF file have the next content:
NOT IMPLEMENTED: support for w:altChunk -
But, in the generated Word Document the table appears OK.
Here is my code:
...
//html is an StringBuffer that contains de HTML code of a Table
CTAltChunk ac = DocumentsFactory.getHTMLTextToDocx(html.toString(), wordMLPackage.getMainDocumentPart(), afiPartId);
wordMLPackage.getMainDocumentPart().addObject(ac);
wordMLPackage.getContentTypeManager().addDefaultContentType("html", "text/html");
wordMLPackage.save(new File("E:\\test.docx"));
InputStream is = new FileInputStream(new File("E:\\test.docx"));
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(is);
PdfSettings pdfSettings = new PdfSettings();
OutputStream out = new FileOutputStream(new File("E:\\test.pdf"));
PdfConversion converter = new org.docx4j.convert.out.pdf.viaXSLFO.Conversion(wordMLPackage);
converter.output(out, pdfSettings);
...
Thanks in advance or your help\
Regards, RayCast