remove pdf and edit the image