PDF: try to handle document encryption when updating a document