PoDoFo 0.9.1
|
#include <PdfSignOutputDevice.h>
Public Member Functions | |
virtual void | SetSignatureSize (size_t lSignatureSize) |
virtual size_t | GetSignatureSize () const |
virtual const PdfData * | GetSignatureBeacon () const |
virtual void | AdjustByteRange () |
virtual size_t | ReadForSignature (char *pBuffer, size_t lLen) |
virtual void | SetSignature (const PdfData &sigData) |
virtual size_t | GetLength () const |
virtual void | Print (const char *pszFormat,...) |
virtual void | Write (const char *pBuffer, size_t lLen) |
virtual size_t | Read (char *pBuffer, size_t lLen) |
virtual void | Seek (size_t offset) |
virtual size_t | Tell () const |
virtual void | Flush () |
Signer class
Class is used to locate place for signature in the stream. Usage: 1. Locate signature and adjust ByteRange 2. Generate signature 3. Insert new signature
void PoDoFo::PdfSignOutputDevice::AdjustByteRange | ( | ) | [virtual] |
Modify ByteRange entry according to signature position
virtual void PoDoFo::PdfSignOutputDevice::Flush | ( | ) | [inline, virtual] |
Flush the output files buffer to disk if this devices operates on a disk.
Reimplemented from PoDoFo::PdfOutputDevice.
virtual size_t PoDoFo::PdfSignOutputDevice::GetLength | ( | ) | const [inline, virtual] |
The number of bytes written to this object.
Reimplemented from PoDoFo::PdfOutputDevice.
virtual const PdfData* PoDoFo::PdfSignOutputDevice::GetSignatureBeacon | ( | ) | const [inline, virtual] |
Return signature beacon
size_t PoDoFo::PdfSignOutputDevice::GetSignatureSize | ( | ) | const [virtual] |
Get expected size of signature.
If reserved size if zero no signatures will be added.
virtual void PoDoFo::PdfSignOutputDevice::Print | ( | const char * | pszFormat, |
... | |||
) | [inline, virtual] |
Write to the PdfOutputDevice. Usage is as the usage of printf.
WARNING: Do not use this for doubles or floating point values as the output might depend on the current locale.
pszFormat | a format string as you would use it with printf |
Reimplemented from PoDoFo::PdfOutputDevice.
virtual size_t PoDoFo::PdfSignOutputDevice::Read | ( | char * | pBuffer, |
size_t | lLen | ||
) | [inline, virtual] |
Read data from the device
pBuffer | a pointer to the data buffer |
lLen | length of the output buffer |
Reimplemented from PoDoFo::PdfOutputDevice.
size_t PoDoFo::PdfSignOutputDevice::ReadForSignature | ( | char * | pBuffer, |
size_t | lLen | ||
) | [virtual] |
Read data for signature
virtual void PoDoFo::PdfSignOutputDevice::Seek | ( | size_t | offset | ) | [inline, virtual] |
Seek the device to the position offset from the begining
offset | from the beginning of the file |
Reimplemented from PoDoFo::PdfOutputDevice.
void PoDoFo::PdfSignOutputDevice::SetSignature | ( | const PdfData & | sigData | ) | [virtual] |
Embed real signature in the PDF
void PoDoFo::PdfSignOutputDevice::SetSignatureSize | ( | size_t | lSignatureSize | ) | [virtual] |
Set string to lookup for
lSignatureSize | Total space reserved for signature |
virtual size_t PoDoFo::PdfSignOutputDevice::Tell | ( | ) | const [inline, virtual] |
Get the current offset from the beginning of the file.
Reimplemented from PoDoFo::PdfOutputDevice.
void PoDoFo::PdfSignOutputDevice::Write | ( | const char * | pBuffer, |
size_t | lLen | ||
) | [virtual] |
Write data to the buffer. Use this call instead of Print if you want to write binary data to the PdfOutputDevice.
pBuffer | a pointer to the data buffer |
lLen | write lLen bytes of pBuffer to the PdfOutputDevice |
Reimplemented from PoDoFo::PdfOutputDevice.