#include <PdfEncrypt.h>
Public Member Functions | |
| void | Encrypt (unsigned char *str, pdf_long len) const |
| Encrypt a character string. | |
| PdfInputStream * | CreateEncryptionInputStream (PdfInputStream *pInputStream) |
| PdfOutputStream * | CreateEncryptionOutputStream (PdfOutputStream *pOutputStream) |
| void | CreateEncryptionDictionary (PdfDictionary &rDictionary) const |
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
| void PoDoFo::PdfEncryptRC4::CreateEncryptionDictionary | ( | PdfDictionary & | rDictionary | ) | const [virtual] |
Fill all keys into a encryption dictionary. This dictionary is usually added to the PDF files trailer under the /Encryption key.
| rDictionary | an empty dictionary which is filled with information about the used encryption algorithm |
Implements PoDoFo::PdfEncrypt.
| PdfInputStream * PoDoFo::PdfEncryptRC4::CreateEncryptionInputStream | ( | PdfInputStream * | pInputStream | ) | [virtual] |
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!
| pInputStream | the created PdfInputStream reads all decrypted data to this input stream. |
Implements PoDoFo::PdfEncrypt.
| PdfOutputStream * PoDoFo::PdfEncryptRC4::CreateEncryptionOutputStream | ( | PdfOutputStream * | pOutputStream | ) | [virtual] |
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!
| pOutputStream | the created PdfOutputStream writes all encrypted data to this output stream. |
Implements PoDoFo::PdfEncrypt.
1.6.1