add receipt pdf function