Page 1 of 1

Need help running Docx4All

PostPosted: Sat Aug 23, 2014 12:53 am
by Ajay191191

I have cloned the docx4all project and I could compile the project after some hurdles, but I have stumbled upon the following problems :
1) There is an ArrayIndexOutOfBoundsException in at line spans[cell] = columnSpans[col]; for index 1.
2) After catching that exception, I am getting <proofErr></proofErr> tags before every element in a table cell, also the formatiing is all messed up. But if I save the docx file, the formatting is maintained.

For compiling I have done changes in :
1) commented out the condition at line : if (! sun.font.FontManager.fontSupportsDefaultEncoding(theFont)).
2) Could not find xalan-patched jar so used xalan jar.
Using docx4j 3.0.1 for compiling created more errors, so using the 2.7.1 version for compiling.

So any pointers in what could help me open a docx file correctly would be great. Thanks in advance !

Re: Need help running Docx4All

PostPosted: Mon Sep 01, 2014 3:36 pm
by jason
I've just updated for 3.2.0

Regarding proofError its probably better to process files in which those have been disabled.

Or you could try

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
                WordprocessingMLPackage.FilterSettings filterSettings = new WordprocessingMLPackage.FilterSettings();
Parsed in 0.015 seconds, using GeSHi

Re: Need help running Docx4All

PostPosted: Fri Sep 12, 2014 9:02 pm
by Ajay191191

Thanks a lot for the input. I am able to run the code without any compilation errors now. Just had one query regarding the licensing of the project, that is it GPL, LGPL or the apache v2 license which docx4j uses? Thanks again.

Re: Need help running Docx4All

PostPosted: Tue Sep 30, 2014 9:36 am
by jason
docx4all is released under the GPL; see