Conditionally set the attached PDF