Hi there.
Thanks for docx4j, I'm using it for a simple program so far and it work well.
Now it is time for slightly more complex program and a third project is in the pipeline.
The existing program was rather simple as I simply appended pictures and other content to the end of a template (actually a regular .docx).
For the second one I need to add pictures at various places inside a template document.
I already have the code to process the pictures and create paragraphs that contain pictures.
What is the sanest way to add those paragraphs to the various places inside the document?
Edit:
To elaborate further:
Simple text markers would be desirable because this would allow users to create the template file.
On the other hand they may or may not be a problem because simple replacing a marker with a picture will not be sufficient. The reason is that any given marker will be replaced by an arbitrary number of images.
Effectively I need something like the method that appends at the end of the document, except that it appends an arbitrary number of images at an arbitrary position within the document.