encryption and pdf conversion