MohamedSaeed / xdocreport

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

Invalid integer value: 20.0 #443

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I'm getting this error
org.apache.poi.xwpf.converter.core.XWPFConverterException: 
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid integer 
value: 20.0

while I'm trying convert my docx file to pdf using 
org.apache.poi.xwpf.converter.pdf, ver. 1.0.4

Code:

InputStream in = new FileInputStream(new  
File("C:/home/output/documento.docx"));
XWPFDocument document = new XWPFDocument(in);

PdfOptions options = PdfOptions.create();

OutputStream out = new FileOutputStream(new 
File("C:/home/output/documento.pdf"));

PdfConverter.getInstance().convert(document, out, options);

I'm using WINDOWS XP, Java 1.6.

This error is similar from issue: 315
    https://code.google.com/p/xdocreport/issues/detail?id=315

I attach my docx file. It has been generated with iReport. 

Original issue reported on code.google.com by lorenzo....@gmail.com on 19 Sep 2014 at 12:24

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Thank's for attaching your docx.

I will see this problem when I will have time.

Regard's Angelo

Original comment by angelo.z...@gmail.com on 19 Sep 2014 at 12:25