Thanks for the inquiry. First off, I’ll suggest you to understand Word template structure which is used in the demo. Here in BarCodeDemo.java, you can observe simple mail merge as following:
// Execute mail merge
You can achieve to add multiple pages along with bar-codes by using mail merge with regions. To specify a mail merge region in the
document you need to insert two mail merge fields to mark the beginning and end of the mail merge region. All document content that is
included inside a mail merge region automatically will be repeated for every record in the data source (in most cases this is a table)
Please follow up the links for more details:
We will be glad to assist you with getting the demos working on your side.