Hello All,
I am facing the following exception when converting a DOCX to PDF. I am using 0.9.0.
The document is attached to this email. Any hint ?
It seems there is missing a "0x" in the beginning of the parsed string.
The stacktrace is below:
java.lang.NumberFormatException: For input string: "4F81BD"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.valueOf(Integer.java:528)
at java.lang.Integer.decode(Integer.java:958)
at java.awt.Color.decode(Color.java:707)
at org.apache.poi.xwpf.converter.internal.itext.ColorRegistry.createColor(ColorRegistry.java:43)
at fr.opensagres.xdocreport.itext.extension.color.AbstractColorRegistry.internalCreateColor(AbstractColorRegistry.java:48)
at fr.opensagres.xdocreport.itext.extension.color.AbstractColorRegistry.getColor(AbstractColorRegistry.java:38)
at org.apache.poi.xwpf.converter.internal.itext.StyleEngineForIText.createBorder(StyleEngineForIText.java:249)
at org.apache.poi.xwpf.converter.internal.itext.StyleEngineForIText.buildStyle(StyleEngineForIText.java:278)
at org.apache.poi.xwpf.converter.internal.itext.StyleEngineForIText.startVisitPargraph(StyleEngineForIText.java:305)
at org.apache.poi.xwpf.converter.internal.itext.PDFMapper.startVisitPargraph(PDFMapper.java:219)
at org.apache.poi.xwpf.converter.internal.itext.PDFMapper.startVisitPargraph(PDFMapper.java:101)
at org.apache.poi.xwpf.converter.internal.XWPFElementVisitor.visitParagraph(XWPFElementVisitor.java:168)
at org.apache.poi.xwpf.converter.internal.XWPFElementVisitor.visitBodyElement(XWPFElementVisitor.java:157)
at org.apache.poi.xwpf.converter.internal.XWPFElementVisitor.visitBodyElements(XWPFElementVisitor.java:149)
at org.apache.poi.xwpf.converter.internal.XWPFElementVisitor.visit(XWPFElementVisitor.java:90)
at org.apache.poi.xwpf.converter.itext.XWPF2PDFViaITextConverter.doConvert(XWPF2PDFViaITextConverter.java:54)