#include <PdfSignatureField.h>
Inherits PoDoFo::PdfField.
◆ PdfSignatureField() [1/3]
◆ PdfSignatureField() [2/3]
PoDoFo::PdfSignatureField::PdfSignatureField |
( |
PdfAnnotation * |
pWidget, |
|
|
PdfAcroForm * |
pParent, |
|
|
PdfDocument * |
pDoc, |
|
|
bool |
bInit = true |
|
) |
| |
Create a new PdfSignatureField
- Parameters
-
bInit | creates a signature field with/without a /V key |
◆ PdfSignatureField() [3/3]
PoDoFo::PdfSignatureField::PdfSignatureField |
( |
PdfAnnotation * |
pWidget | ) |
|
Creates a PdfSignatureField from an existing PdfAnnotation, which should be an annotation with a field type Sig.
- Parameters
-
pWidget | the annotation to create from |
◆ AddCertificationReference()
void PoDoFo::PdfSignatureField::AddCertificationReference |
( |
PdfObject * |
pDocumentCatalog, |
|
|
EPdfCertPermission |
perm = ePdfCertPermission_NoPerms |
|
) |
| |
Add certification dictionaries and references to document catalog.
- Parameters
-
pDocumentCatalog | the catalog of current document |
perm | document modification permission |
◆ EnsureSignatureObject()
void PoDoFo::PdfSignatureField::EnsureSignatureObject |
( |
void |
| ) |
|
Ensures that the signature field has set a signature object. The function does nothing, if the signature object is already set. This is useful for cases when the signature field had been created from an existing annotation, which didn't have it set.
◆ GetSignatureObject()
PdfObject * PoDoFo::PdfSignatureField::GetSignatureObject |
( |
void |
| ) |
const |
Returns signature object for this signature field. It can be NULL, when the signature field was created from an existing annotation and it didn't have set it.
- Returns
- associated signature object, or NULL
◆ SetAppearanceStream()
Set an appearance stream for this signature field to specify its visual appearance
- Parameters
-
pObject | an XObject |
eAppearance | an appearance type to set |
state | the state for which set it the pObject; states depend on the annotation type |
◆ SetSignature()
void PoDoFo::PdfSignatureField::SetSignature |
( |
const PdfData & |
signatureData | ) |
|
Create space for signature
- Parameters
-
signatureData | String used to locate reserved space for signature. This string will be replaiced with signature. |
Structure of the PDF file - before signing: <</ByteRange[ 0 1234567890 1234567890 1234567890]/Contents<signatureData> Have to be replaiced with the following structure: <</ByteRange[ 0 count pos count]/Contents<real signature ...0-padding>
◆ SetSignatureCreator()
void PoDoFo::PdfSignatureField::SetSignatureCreator |
( |
const PdfName & |
creator | ) |
|
Set the creator of the signature
- Parameters
-
creator | the creator of the signature |
◆ SetSignatureDate()
void PoDoFo::PdfSignatureField::SetSignatureDate |
( |
const PdfDate & |
sigDate | ) |
|
◆ SetSignatureLocation()
void PoDoFo::PdfSignatureField::SetSignatureLocation |
( |
const PdfString & |
rsText | ) |
|
Set location of the signature
- Parameters
-
rsText | the location of signature |
◆ SetSignatureReason()
void PoDoFo::PdfSignatureField::SetSignatureReason |
( |
const PdfString & |
rsText | ) |
|
Set reason of the signature
- Parameters
-
rsText | the reason of signature |