Added remove pdf functionality.