Fixed print pdf functionality