|
pdfmm 0.9.20
|
#include <PdfEncrypt.h>
Public Member Functions | |
| std::unique_ptr< PdfInputStream > | CreateEncryptionInputStream (PdfInputStream &inputStream, size_t inputLen) override |
| std::unique_ptr< PdfOutputStream > | CreateEncryptionOutputStream (PdfOutputStream &outputStream) override |
| size_t | CalculateStreamOffset () const override |
| size_t | CalculateStreamLength (size_t length) const override |
A class that is used to encrypt a PDF file (AES-128)
Client code is working only with PdfEncrypt class and knows nothing about PdfEncryptAES*, it is created through CreatePdfEncrypt factory method
|
overridevirtual |
Calculate stream size
Implements mm::PdfEncrypt.
|
overridevirtual |
Calculate stream offset
Implements mm::PdfEncrypt.
|
overridevirtual |
Create a PdfInputStream that decrypts all data read from it using the current settings of the PdfEncrypt object.
Warning: Currently only RC4 based encryption is supported using output streams!
| inputStream | the created PdfInputStream reads all decrypted data to this input stream. |
Implements mm::PdfEncrypt.
|
overridevirtual |
Create a PdfOutputStream that encrypts all data written to it using the current settings of the PdfEncrypt object.
Warning: Currently only RC4 based encryption is supported using output streams!
| outputStream | the created PdfOutputStream writes all encrypted data to this output stream. |
Implements mm::PdfEncrypt.