Page 1 of 1

append same template on same document

PostPosted: Fri Feb 14, 2014 10:31 am
by adilturbo
Hello beautifull minds,

I have a template document containing one page. i want to create a document of many pages, those pages are a replacement of the page template.
i was able to create only one page, means from template (one page) i can create document with one page. my purpose is i have a set of data , so to avoid create many documents of 1 page from same template, i want to create only one document with many pages of same template.

i wish you get my point; and thanks in advance for you nice guides

Re: append same template on same document

PostPosted: Mon Feb 17, 2014 10:59 am
by jason
At its most basic, you simply copy the content into the content list, separating each page/document with a simple page break or a section break.

Of course, it gets more complicated if you have numbering you want to restart at each new document, or if each one is to have its own headers/footers.

Or if your template content is complex eg each document will include different images.

See further http://www.docx4java.org/blog/2010/11/m ... documents/

Re: append same template on same document

PostPosted: Thu Feb 20, 2014 12:37 am
by adilturbo
thank you for the hints. and wish our feedback make the library robust