calculate encryption key

This commit is contained in:
Kulikova Svetlana
2022-03-21 17:32:45 +03:00
parent 4decd0c631
commit 02fa4142a7
7 changed files with 37 additions and 36 deletions

View File

@ -1074,6 +1074,7 @@ namespace PdfWriter
{
m_pEncryptDict = new CEncryptDict(sEncrypt);
m_pEncryptDict->SetPasswords(sPassword, sPassword);
m_pEncryptDict->UpdateKey();
m_bEncrypt = true;
}
@ -1145,6 +1146,7 @@ namespace PdfWriter
else
m_pLastXref->WriteToStream(pStream, pEncrypt);
RELEASEOBJECT(m_pEncryptDict);
RELEASEOBJECT(pStream);
RELEASEOBJECT(m_pLastXref);
m_pXref = NULL;