you have to export your data from your database then with those data, you can generate barcode images in PDF file.
here is a post which talks about how to generate barcode in PDF file, hope it can help you a little.
http://forums.adobe.com/message/4004858