PoDoFo 0.9.20
|
#include <PdfEncrypt.h>
Public Member Functions | |
std::unique_ptr< InputStream > | CreateEncryptionInputStream (InputStream &inputStream, size_t inputLen, const PdfReference &objref) override |
std::unique_ptr< OutputStream > | CreateEncryptionOutputStream (OutputStream &outputStream, const PdfReference &objref) override |
size_t | CalculateStreamOffset () const override |
size_t | CalculateStreamLength (size_t length) const override |
A class that is used to encrypt a PDF file (RC4 40-bit and 128-bit)
Client code is working only with PdfEncrypt class and knows nothing about PdfEncryptRC4, it is created through CreatePdfEncrypt factory method
|
overridevirtual |
Calculate stream size
Implements PoDoFo::PdfEncrypt.
|
overridevirtual |
Calculate stream offset
Implements PoDoFo::PdfEncrypt.
|
overridevirtual |
Create an InputStream 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 InputStream reads all decrypted data to this input stream. |
Implements PoDoFo::PdfEncrypt.
|
overridevirtual |
Create an OutputStream 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 OutputStream writes all encrypted data to this output stream. |
Implements PoDoFo::PdfEncrypt.