Open GoogleCodeExporter opened 9 years ago
Thank's for attaching the docx. Don't know when I will have time to manage it.
Original comment by angelo.z...@gmail.com
on 20 Feb 2014 at 8:17
Footnote lost during DOCX to PDF conversion in version docxreport 1.0.5 and
below. Can you please help to fix the problem? Thank you.
public class ConvertDocxToPDF
{
public static void main( String[] args )
{
try {
// 1) Load DOCX into XWPFDocument
InputStream in= new FileInputStream(new File("ConvertDocxToPDF.docx"));
XWPFDocument document = new XWPFDocument(in);
// 2) Prepare Pdf options
PdfOptions options = PdfOptions.create();
// 3) Convert XWPFDocument to Pdf
OutputStream out = new FileOutputStream(new File("ConvertDocxToPDF.pdf"));
PdfConverter.getInstance().convert(document, out, options);
} catch (Exception ex) { // For problems closing.
ex.printStackTrace();
}
}
}
Original comment by wailikch...@gmail.com
on 9 Jun 2015 at 4:00
Original issue reported on code.google.com by
costy.fe...@acquitysoftware.com
on 20 Feb 2014 at 12:02Attachments: