I am not aware whether any library available for barcode reader functionality for iPad application. (Using iPad2's camera)
Please provide some documentation links.
You can used savvy or scandit.
OR
if you want to go with the open source -zxing is the best one for iOS.