Add support for EncryptMetadata key in encryption dictionary.

This commit is contained in:
Michael R Sweet
2025-04-23 10:07:44 -04:00
parent 404ca72882
commit 4ca93bd34f
4 changed files with 31 additions and 6 deletions

View File

@@ -1262,6 +1262,8 @@ pdfioFileSetPermissions(
if (encryption == PDFIO_ENCRYPTION_NONE)
return (true);
pdf->encrypt_metadata = true;
return (_pdfioCryptoLock(pdf, permissions, encryption, owner_password, user_password));
}