I have created two custom attribute code. I assigned one of these code on product. I want to show product name alongwith this code in invoice. How can i implement this?
You can use 2 differents way:
Use free extension Easy PDF Invoice - Custom Variables https://www.magentocommerce.com/magento-connect/catalog/product/view/id/16526/
Create a new module. Good example by Inchoo: http://inchoo.net/magento/how-to-add-custom-attribute-to-magentos-pdf-invoice/