added print receipt functionality through pdf creation