How can a docx file be generated based on an specific Word template (.dot). My guess is that this information is stored in docProps/app.xml? Also how can properties be set in docProps/custom.xml? Any example would help. thanks!
I've tried to get docx4all downloaded to my system, but I run into the issue of being asked for a password. I execute the 'svn co http://dev.plutext.org/svn/docx4all/trunk/docx4all docx4all' command, which asks for a password which I don't have. I did not have this issue with getting docx4j downloaded.
I'm currently trying to load a 190MB docx file using docx4j. Even giving the vm 1.5GB memory loading fails with an OutOfMemoryError. Does doc4j loads all parts on load of the package or does it load the parts on demand?
If all parts are loaded into memory with the package, could that be changed do load on demand using a memory sensitive cache for loaded parts?
I'm pleased to announce the release of docx4j v2.2.2.
The main new features of this release are support for math and VML. A summary of changes in this release and the immediately preceding one (v2.2.1) can be found below. This is taken from README.txt in svn.
Contributors to this release include Holger Schlegel. Thanks to all contributors to this and previous releases.
I just received an some exceptions saying that the @XmlRootElement is missing on some of the generated classes in the wml package. In my run I spotted the following classes: org.docx4j.wml.CTTblCellMar org.docx4j.wml.CTShortHexNumber org.docx4j.wml.TblWidth org.docx4j.wml.TblBorders org.docx4j.wml.CTTblLayoutType
Once added the annotation manually the exceptions are gone but changing a generated class manually sounds like a very bad idea for me. Could you please regenerate that classes with the appropriate XmlRootElement anotations.
What would be the (technical) way to contribute source changes? I've allready checked out the docx4j sources from svn and created a local Eclipse project for it.
One relative small change I would like to do is to add the generic parameter for the jaxbElement member in the JaxbXmlPart base class and its subclasses.
Appended to this post is a Eclipse generated patch file for the JaxbXmlElement class. It adds a generic parameter for the jaxbElement property. Subclasses of that class has been changed to add a conrete class for that parameter. For example, the MainDocumentPart uses the org.docx4j.wml.Document class as parameter. Some other classes referencing the changed property has been updated to remove compiler errors (mainly by adding casts). The changes samples has not been tested.
I need help adding table objects to the main document. Looking at the document.xml from a Word generated file it looks like tables are, typically, inserted at the same level as P objects. So, I tried calling the MainDocumentPart.addObject method passing in an instance of Tbl but that merely generates an "UNEXPECTED: org.docx4j.wml.Tbl" in the log. It turns out, the traverseMainDocumentRecursive method allows only P and R objects. As near as I can tell, the ...
Using Word 2003 with the docx compability pack to save a doc as docx results in a docx file containing VML elements instead of DrawingML for embeded images. As far as I know, the classes for the DrawingML package dml are simply generated from the corresponding xml schema definition file. If that is true, could you generate and add such classes for the VML elements? These classes would save me some dom-node-hopping.