karurkarthi / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

Footnotes are lost when converting to pdf #367

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create a simple docx with one page and a footnote
2.convert to pdf using your live demo

What is the expected output? What do you see instead?
- Footnotes are lost when converting to pdf

What version of the product are you using? On what operating system?
-Livedemo

Please provide any additional information below.

Original issue reported on code.google.com by costy.fe...@acquitysoftware.com on 20 Feb 2014 at 12:02

Attachments:

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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