LibreOffice Module sdext (master) 1
|
#include <pdfparse.hxx>
Public Member Functions | |
PDFFile () | |
virtual | ~PDFFile () override |
virtual bool | emit (EmitContext &rWriteContext) const override |
virtual PDFEntry * | clone () const override |
bool | isEncrypted () const |
bool | usesSupportedEncryptionFormat () const |
bool | setupDecryptionData (const OString &rPwd) const |
bool | decrypt (const sal_uInt8 *pInBuffer, sal_uInt32 nLen, sal_uInt8 *pOutBuffer, unsigned int nObject, unsigned int nGeneration) const |
Public Member Functions inherited from pdfparse::PDFContainer | |
PDFContainer () | |
virtual | ~PDFContainer () override |
bool | emitSubElements (EmitContext &rWriteContext) const |
void | cloneSubElements (std::vector< std::unique_ptr< PDFEntry > > &rNewSubElements) const |
PDFObject * | findObject (unsigned int nNumber, unsigned int nGeneration) const |
PDFObject * | findObject (PDFObjectRef const *pRef) const |
Public Member Functions inherited from pdfparse::PDFEntry | |
PDFEntry () | |
virtual | ~PDFEntry () |
virtual bool | emit (EmitContext &rWriteContext) const =0 |
virtual PDFEntry * | clone () const =0 |
Public Attributes | |
unsigned int | m_nMajor |
unsigned int | m_nMinor |
Public Attributes inherited from pdfparse::PDFContainer | |
sal_Int32 | m_nOffset |
std::vector< std::unique_ptr< PDFEntry > > | m_aSubElements |
Private Member Functions | |
PDFFileImplData * | impl_getData () const |
Private Attributes | |
std::unique_ptr< PDFFileImplData > | m_pData |
Additional Inherited Members | |
Static Protected Member Functions inherited from pdfparse::PDFEntry | |
static EmitImplData * | getEmitData (EmitContext const &rContext) |
static void | setEmitData (EmitContext &rContext, EmitImplData *pNewEmitData) |
Definition at line 230 of file pdfparse.hxx.
PDFFile::PDFFile | ( | ) |
Definition at line 1047 of file pdfentries.cxx.
Referenced by clone().
|
overridevirtual |
Definition at line 1052 of file pdfentries.cxx.
|
overridevirtual |
Implements pdfparse::PDFEntry.
Definition at line 1434 of file pdfentries.cxx.
References pdfparse::PDFContainer::cloneSubElements(), pdfparse::PDFContainer::m_aSubElements, m_nMajor, m_nMinor, and PDFFile().
bool PDFFile::decrypt | ( | const sal_uInt8 * | pInBuffer, |
sal_uInt32 | nLen, | ||
sal_uInt8 * | pOutBuffer, | ||
unsigned int | nObject, | ||
unsigned int | nGeneration | ||
) | const |
Definition at line 1061 of file pdfentries.cxx.
References comphelper::Hash::calculateHash(), i, isEncrypted(), and m_pData.
Referenced by pdfparse::EmitImplData::decrypt().
|
overridevirtual |
Implements pdfparse::PDFEntry.
Definition at line 1419 of file pdfentries.cxx.
References aBuf, pdfparse::PDFContainer::emitSubElements(), m_nMajor, m_nMinor, pdfparse::PDFEntry::setEmitData(), and pdfparse::EmitContext::write().
Referenced by write_unzipFile().
|
private |
Definition at line 1278 of file pdfentries.cxx.
References pdfparse::PDFContainer::findObject(), pdfparse::PDFName::getFilteredName(), pdfparse::PDFString::getFilteredString(), i, pdfparse::PDFDict::m_aMap, pdfparse::PDFContainer::m_aSubElements, pdfparse::PDFNumber::m_fValue, m_pData, pdfparse::PDFTrailer::m_pDict, pdfparse::PDFObject::m_pObject, nElements, SAL_INFO, and SAL_WARN.
Referenced by isEncrypted(), and setupDecryptionData().
bool PDFFile::isEncrypted | ( | ) | const |
Definition at line 1056 of file pdfentries.cxx.
References impl_getData(), and pdfparse::PDFFileImplData::m_bIsEncrypted.
Referenced by pdfi::checkEncryption(), decrypt(), pdfi::getAdditionalStream(), handleFile(), write_addStreamArray(), write_fonts(), write_objects(), and write_unzipFile().
bool PDFFile::setupDecryptionData | ( | const OString & | rPwd | ) | const |
Definition at line 1219 of file pdfentries.cxx.
References check_user_password(), ENCRYPTION_BUF_LEN, ENCRYPTION_KEY_LEN, i, impl_getData(), m_pData, password_to_key(), and usesSupportedEncryptionFormat().
Referenced by pdfi::checkEncryption(), pdfi::getAdditionalStream(), and handleFile().
bool PDFFile::usesSupportedEncryptionFormat | ( | ) | const |
Definition at line 1210 of file pdfentries.cxx.
References m_pData.
Referenced by pdfi::checkEncryption(), and setupDecryptionData().
unsigned int pdfparse::PDFFile::m_nMajor |
Definition at line 236 of file pdfparse.hxx.
unsigned int pdfparse::PDFFile::m_nMinor |
Definition at line 237 of file pdfparse.hxx.
|
mutableprivate |
Definition at line 233 of file pdfparse.hxx.
Referenced by decrypt(), impl_getData(), setupDecryptionData(), and usesSupportedEncryptionFormat().