I have setup some code to perform some formatting. I can use JcEnumeration.RIGHT, LEFT, CENTER and it applies the w:jc tag appropriately. But when I use BOTH or DISTRIBUTED nothing gets set in the document xml for the w:jc tag.
I notice that Word uses "BOTH" for justify alignment. Either way (BOTH or DISTRIBUTED) my code does not work. Here is an example of how I set CENTER which works and then the same ...
I have been investigating docx4j for its capabilities for document merging (document assembly could be a more apt word).
Primarily I was looking at the library for following aspects:
1. support for Document Assembly by Copy (equals to MS WORD Insert > Object > Text from File >Insert behavior) : When we do it in the word, this will result in a target document containing all the source contents (including styles, comments etc) in it. ...
I apologize if this has been asked before, I spent roughly four hours searching before I decided to open a thread about it.
I have come from using C# to manipulate word 2007 documents with the OpenXML SDK. Manipulating content controls can be done fairly easily if you know the tag of the content control. I am hoping to be able to populate text strings into richtext content controls in word 2007 without using xml ...
I have a docx "template" with one table that has several columns in one row. Using Word the table is setup and the default font is overriden to Courier New (or any font really...the user is in control and the code will never know ahead of time). No text is typed into any column. The docx is saved (all with Word app, no code yet).
Hi, using docx4j 2.8.1 and has no problem in eclipse both compile and runtime. However, when deployed in Tomcat 5.5 with JRE1.5 external to eclipse, yet making sure all jars required are still in the deployed project\WEB-INF\lib folder, I am getting NoClassDefFoundError upon executing docx4j class to generate a docx from a fillable docx.
This is the exception that got thrown when the code to fill in a docx using docx4j is called:
I want to generate a docx document with a "first" and "default" headers using docx-2.8.1. Unfortunately, the resulting docx when opened in Microsoft Word for Mac 2011 the "default" header appears on the first page instead of the "first" header. The generated docx is attached. The first page's header should say "Cover header text" but instead is says "Content header text". The problem can be reproduced by running the following code: