We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Barcode integration with PDF

Hi Team,

Is it possible to create a multi page pdf with barcode image and barcode property information below in a table format. I have attached the required sample document.

Just wanted to know if this is achievable by aspose.word before getting license.

I have seen Demo for a single page barcode integration please confirm on multiple barcode integration .

Hi

Thanks for your request. Sure you can generate such documents using Aspose.Words. I think in your case you can use simple Mail Merge feature. You will need to create a mail merge template in MS Word, then you will be able to use Aspose.Words to fill this template with data (including barcode).

http://docs.aspose.com/display/wordsjava/Simple+Mail+Merge+Explained

Best regards,

I think you have misunderstood my question , we required something similar mentioned in the demo http://www.aspose.com/demos/java-components/aspose.words/java/barcode.jsf .


How can we have multiple pages using same code , can you please send the modified code/API’s to append pages to the existing PDF.

I have also attached sample single sheet PDF, we required same output if there are more then one Bar Code.

Hi Sandeep,


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
       doc.getMailMerge().execute(fieldNames, fieldValues);

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:
http://docs.aspose.com/display/wordsnet/How+to++Use+Nested+Mail+Merge+Regions
http://docs.aspose.com/display/wordsnet/Mail+Merge+and+Reporting

We will be glad to assist you with getting the demos working on your side.