yeokm1 / docs-to-pdf-converter

A standalone Java library/command line tool that converts DOC, DOCX, PPT, PPTX and ODT documents to PDF files.
MIT License
590 stars 242 forks source link

Error converting simple docx to pfd #8

Open Fauno1979 opened 8 years ago

Fauno1979 commented 8 years ago

Hi! I am using your api to convert word document .docx to pdf . Is very simple with one line of text, nothing else, but I am always getting the same error:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.poi.xwpf.converter.core.styles.XWPFStylesDocument.getBackgroundColor(Lorg/apache/poi/xwpf/usermodel/XWPFParagraph;)Lorg/apache/poi/xwpf/converter/core/Color;

And in other document with .doc extension that contais several tables, I get this one:

Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Exception executing transformer: org.apache.fop.fo.ValidationException: The column-number or number of cells in the row overflows the number of fo:table-columns specified for the table. (See position 19:265) at org.docx4j.convert.out.fo.renderers.FORendererApacheFOP.render(FORendererApacheFOP.java:215)

Could anybody help me? Thanks!!

yeokm1 commented 8 years ago

My app uses external libraries to handle the conversion. The exceptions you describe originate from them which I have no control over... I'm not sure if I can do anything about it.