Will docx4j be able to deal with Office 2013 word documents? I've read that Office 2013 fully implements Open XML. Is it a guarantee docx4j will be compatible with? I've been wondering about it since I've read some news of Office 2013. Thanks a lot!
I really hate to ask this, but I can't seem to find what class the <w:text> matches to in docx4j. I am trying to duplicate the line <w:text w:multiLine="1"/> in docx4j.
I'm trying to upgrade the version of the docx4j used from 2.6.0 to 2.8.1 but have encountered a problem.
When I just change the jar file, everything compiles and runs okay, but when I try to open the resulting docx files in Word 2007 it complains that the files are corrupt. The exact message is:
The file part1.docx cannot be opened because there are problems with the contents. Details: The file is corrupt and cannot ...
I'm trying to use docx4j, but on many files I notice the following error. I'm using version 2.8.0 and also tried with 2.8.1.
Why does it not recognize element: (uri:"http://schemas.openxmlformats.org/spreadsheetml/2006/main", local:"worksheet") ? Why also am I seeing the error about RI -- is that related to the version of Java or other dependent jars not matching somehow?
Thanks
13:38:16,535 ERROR name: com.sun.xml.internal.bind.namespacePrefixMapper value: org.docx4j.jaxb.NamespacePrefixMapperSunInternal@1d1419f1 .. trying RI. 13:38:16,536 INFO Using NamespacePrefixMapper, which ...
How difficult would it be to take the comment from a .docx file and use that comment as a class or id on the nearest HTML element? Looking through the old source code it looked like it was possible to add a custom XSLT stylesheet (which would make my task very simple, I think anyway), but that method seems to have been deprecated. Thank you for your time...
I'm using XML bindings with docx4j to generate word docx reports.
In some cases when the XML is big 2 MB ( 40000 lines ) the heap usage goes up 1-2 GB and it takes 50-60 minutes to generate report. The slowest part is the binding: ( BindingHandler.applyBindings(templateWordPackage.getMainDocumentPart()); )
did a memory profiling: The thread java.lang.Thread @ 0x79100a248 Thread-127 keeps local variables with total size 1,362,944,720 (84.19%) bytes. The memory is accumulated in one instance ...
We are facing a situation where in some cases white spaces are included in the beginning or in the end of a Text element, like " test string ". And we want to preserve those spaces. We decided to put a "space preserve" in every Text element to solve that. Is there any problem with this strategy? Thanks a lot!