How to encrypt a PDF and redact sensitive information automatically