Hi guys,
i am unable to convert docx into pdf and am using latest 1.0.4 libraries.I am unable to attach failure document.As i am completely blocked here can anyone suggest this.

Code Snippet:

InputStream is = new FileInputStream(new File(
"docx/Sample.docx"));
BufferedInputStream st=new BufferedInputStream(is);
XWPFDocument document = new XWPFDocument(st);

// 2) Prepare Pdf options
PdfOptions options = null;

// 3) Convert XWPFDocument to Pdf
OutputStream out = new FileOutputStream(new File(
"pdf/Sample.pdf"));
//document.write(out);
//out.close();
PdfConverter.getInstance().convert(document, out, options);
out.close();



Libraries used:
commons-codec-1.5.jar
dom4j-1.6.1.jar
fr.opensagres.xdocreport.itext.extension-1.0.4.jar
itext-2.1.7.jar
ooxml-schemas-1.1.jar
org.apache.poi.xwpf.converter.core-1.0.4.jar
org.apache.poi.xwpf.converter.pdf-1.0.4.jar
org.apache.poi.xwpf.converter.xhtml-1.0.4.jar
poi-3.9.jar
poi-ooxml-3.9.jar
stax-api-1.0.1.jar
xml-apis-1.0.b2.jar
xmlbeans-2.6.0.jar
xmlbeans-xmlpublic-2.6.0.jar

Error:
org.apache.poi.xwpf.converter.core.XWPFConverterEx ception: org.apache.xmlbeans.impl.values.XmlValueOutOfRange Exception: Invalid integer value: 720.0
at org.apache.poi.xwpf.converter.pdf.PdfConverter.doC onvert(PdfConverter.java:59)
at org.apache.poi.xwpf.converter.pdf.PdfConverter.doC onvert(PdfConverter.java:37)
at org.apache.poi.xwpf.converter.core.AbstractXWPFCon verter.convert(AbstractXWPFConverter.java:45)
at com.word.pdf.wordtopdf.createPDF(wordtopdf.java:37 )
at com.word.pdf.wordtopdf.main(wordtopdf.java:18)
Caused by: org.apache.xmlbeans.impl.values.XmlValueOutOfRange Exception: Invalid integer value: 720.0
at org.apache.xmlbeans.impl.values.XmlObjectBase$Valu eOutOfRangeValidationContext.invalid(XmlObjectBase .java:285)
at org.apache.xmlbeans.impl.values.JavaIntegerHolder. lex(JavaIntegerHolder.java:50)
at org.apache.xmlbeans.impl.values.JavaIntegerHolderE x.set_text(JavaIntegerHolderEx.java:40)
at org.apache.xmlbeans.impl.values.XmlObjectBase.upda te_from_wscanon_text(XmlObjectBase.java:1135)
at org.apache.xmlbeans.impl.values.XmlObjectBase.chec k_dated(XmlObjectBase.java:1274)
at org.apache.xmlbeans.impl.values.JavaIntegerHolder. bigIntegerValue(JavaIntegerHolder.java:58)
at org.apache.xmlbeans.impl.values.XmlObjectBase.getB igIntegerValue(XmlObjectBase.java:1504)
at org.openxmlformats.schemas.wordprocessingml.x2006. main.impl.CTPageMarImpl.getHeader(Unknown Source)
at org.apache.poi.xwpf.converter.pdf.internal.PdfMapp er.visitHeader(PdfMapper.java:180)
at org.apache.poi.xwpf.converter.pdf.internal.PdfMapp er.visitHeader(PdfMapper.java:112)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVis itor.visitHeaderRef(XWPFDocumentVisitor.java:1098)
at org.apache.poi.xwpf.converter.core.MasterPageManag er.visitHeadersFooters(MasterPageManager.java:213)
at org.apache.poi.xwpf.converter.core.MasterPageManag er.addSection(MasterPageManager.java:180)
at org.apache.poi.xwpf.converter.core.MasterPageManag er.compute(MasterPageManager.java:127)
at org.apache.poi.xwpf.converter.core.MasterPageManag er.initialize(MasterPageManager.java:90)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVis itor.visitBodyElements(XWPFDocumentVisitor.java:22 7)
at org.apache.poi.xwpf.converter.core.XWPFDocumentVis itor.start(XWPFDocumentVisitor.java:194)
at org.apache.poi.xwpf.converter.pdf.PdfConverter.doC onvert(PdfConverter.java:55)
... 4 more


Regards,
Kumar