Closed prscoelho closed 2 months ago
Fix #37 based on #59
This change adds extract_text_encrypted, extract_text_from_mem_encrypted and output_doc_encrypted.
extract_text_encrypted
extract_text_from_mem_encrypted
output_doc_encrypted
Try to decrypt with empty password before calling output_doc and return early with error if encrypt("") returns an error.
output_doc
encrypt("")
output_doc still has a is_encrypted() check, as lopdf removes the Encrypt trailer after successfully decrypting.
is_encrypted()
Encrypt
Fix #37 based on #59
This change adds
extract_text_encrypted
,extract_text_from_mem_encrypted
andoutput_doc_encrypted
.Try to decrypt with empty password before calling
output_doc
and return early with error ifencrypt("")
returns an error.output_doc
still has ais_encrypted()
check, as lopdf removes theEncrypt
trailer after successfully decrypting.