Pdftools SDK
Loading...
Searching...
No Matches
Macros | Typedefs | Functions
PdfTools_PdfToolsSign.h File Reference
#include "PdfTools_Types.h"
#include "PdfTools_PdfToolsSys.h"

Go to the source code of this file.

Macros

#define PDFTOOLS_CALL
 
#define PdfToolsSign_CustomTextVariableMap_Get   PdfToolsSign_CustomTextVariableMap_GetA
 
#define PdfToolsSign_CustomTextVariableMap_GetKey   PdfToolsSign_CustomTextVariableMap_GetKeyA
 
#define PdfToolsSign_CustomTextVariableMap_GetValue   PdfToolsSign_CustomTextVariableMap_GetValueA
 
#define PdfToolsSign_CustomTextVariableMap_Set   PdfToolsSign_CustomTextVariableMap_SetA
 
#define PdfToolsSign_CustomTextVariableMap_SetValue   PdfToolsSign_CustomTextVariableMap_SetValueA
 
#define PdfToolsSign_SignatureConfiguration_GetFieldName   PdfToolsSign_SignatureConfiguration_GetFieldNameA
 
#define PdfToolsSign_SignatureConfiguration_SetFieldName   PdfToolsSign_SignatureConfiguration_SetFieldNameA
 
#define PdfToolsSign_SignatureConfiguration_GetName   PdfToolsSign_SignatureConfiguration_GetNameA
 
#define PdfToolsSign_SignatureConfiguration_GetLocation   PdfToolsSign_SignatureConfiguration_GetLocationA
 
#define PdfToolsSign_SignatureConfiguration_SetLocation   PdfToolsSign_SignatureConfiguration_SetLocationA
 
#define PdfToolsSign_SignatureConfiguration_GetReason   PdfToolsSign_SignatureConfiguration_GetReasonA
 
#define PdfToolsSign_SignatureConfiguration_SetReason   PdfToolsSign_SignatureConfiguration_SetReasonA
 
#define PdfToolsSign_SignatureConfiguration_GetContactInfo   PdfToolsSign_SignatureConfiguration_GetContactInfoA
 
#define PdfToolsSign_SignatureConfiguration_SetContactInfo   PdfToolsSign_SignatureConfiguration_SetContactInfoA
 
#define PdfToolsSign_TimestampConfiguration_GetFieldName   PdfToolsSign_TimestampConfiguration_GetFieldNameA
 
#define PdfToolsSign_TimestampConfiguration_SetFieldName   PdfToolsSign_TimestampConfiguration_SetFieldNameA
 
#define PdfToolsSign_SignatureFieldOptions_GetFieldName   PdfToolsSign_SignatureFieldOptions_GetFieldNameA
 
#define PdfToolsSign_SignatureFieldOptions_SetFieldName   PdfToolsSign_SignatureFieldOptions_SetFieldNameA
 
#define TPdfToolsSign_Signer_Warning   TPdfToolsSign_Signer_WarningA
 
#define PdfToolsSign_Signer_AddWarningHandler   PdfToolsSign_Signer_AddWarningHandlerA
 
#define PdfToolsSign_Signer_RemoveWarningHandler   PdfToolsSign_Signer_RemoveWarningHandlerA
 

Typedefs

typedef void(PDFTOOLS_CALLTPdfToolsSign_Signer_WarningA) (void *pContext, const char *szMessage, TPdfToolsSign_WarningCategory iCategory, const char *szContext)
 Event for non-critical errors occurring during signature processing.
 
typedef void(PDFTOOLS_CALLTPdfToolsSign_Signer_WarningW) (void *pContext, const WCHAR *szMessage, TPdfToolsSign_WarningCategory iCategory, const WCHAR *szContext)
 Event for non-critical errors occurring during signature processing.
 

Functions

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetCount (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap)
 The number of key-value pairs in the map.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetSize (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap)
 The number of key-value pairs in the map.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetBegin (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap)
 Get the position of the first entry in the map.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetEnd (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap)
 Get the end position of the map.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetNext (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it)
 Get the position of the next entry in the map.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetA (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, const char *szKey)
 Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with PdfToolsSign_CustomTextVariableMap_GetValue.
 
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetW (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, const WCHAR *szKey)
 Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with PdfToolsSign_CustomTextVariableMap_GetValue.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetKeyA (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, char *pBuffer, size_t nBufferSize)
 Get the key of the entry given a position.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetKeyW (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, WCHAR *pBuffer, size_t nBufferSize)
 Get the key of the entry given a position.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetValueA (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, char *pBuffer, size_t nBufferSize)
 Get the value of the entry given a position.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetValueW (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, WCHAR *pBuffer, size_t nBufferSize)
 Get the value of the entry given a position.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetA (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, const char *szKey, const char *szValue)
 Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, PdfToolsSign_CustomTextVariableMap_GetEnd, PdfToolsSign_CustomTextVariableMap_GetNext, and PdfToolsSign_CustomTextVariableMap_Get.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetW (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, const WCHAR *szKey, const WCHAR *szValue)
 Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, PdfToolsSign_CustomTextVariableMap_GetEnd, PdfToolsSign_CustomTextVariableMap_GetNext, and PdfToolsSign_CustomTextVariableMap_Get.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetValueA (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, const char *szValue)
 Set the value of the entry at a position in the map.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetValueW (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it, const WCHAR *szValue)
 Set the value of the entry at a position in the map.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_Clear (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap)
 Remove all entries from the map.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_Remove (TPdfToolsSign_CustomTextVariableMap *pCustomTextVariableMap, int it)
 Remove the entry at a position in the map.
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFromJson (const TPdfToolsSys_StreamDescriptor *pStreamDesc)
 Create an appearance with the content loaded from a JSON file The format of the JSON file is described in the user manual.
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFromXml (const TPdfToolsSys_StreamDescriptor *pStreamDesc)
 Create an appearance with the content loaded from an XML file The format of the XML file is described in the user manual.
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFieldBoundingBox (const TPdfToolsGeomUnits_Size *pSize)
 Create the bounding box for an unsigned signature field Unsigned signature fields can define a rectangle on a page. When the field is signed, the signer creates a visual appearance within that rectangle.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetPageNumber (TPdfToolsSign_Appearance *pAppearance, int *pPageNumber)
 The number of the page where the appearance is positioned.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetPageNumber (TPdfToolsSign_Appearance *pAppearance, const int *pPageNumber)
 The number of the page where the appearance is positioned.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetTop (TPdfToolsSign_Appearance *pAppearance, double *pTop)
 Distance to top of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetTop (TPdfToolsSign_Appearance *pAppearance, const double *pTop)
 Distance to top of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetRight (TPdfToolsSign_Appearance *pAppearance, double *pRight)
 Distance to right of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetRight (TPdfToolsSign_Appearance *pAppearance, const double *pRight)
 Distance to right of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetBottom (TPdfToolsSign_Appearance *pAppearance, double *pBottom)
 Distance to bottom of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetBottom (TPdfToolsSign_Appearance *pAppearance, const double *pBottom)
 Distance to bottom of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetLeft (TPdfToolsSign_Appearance *pAppearance, double *pLeft)
 Distance to left of page.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetLeft (TPdfToolsSign_Appearance *pAppearance, const double *pLeft)
 Distance to left of page.
 
PDFTOOLS_EXPORT TPdfToolsSign_CustomTextVariableMap *PDFTOOLS_CALL PdfToolsSign_Appearance_GetCustomTextVariables (TPdfToolsSign_Appearance *pAppearance)
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetFieldNameA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, char *pBuffer, size_t nBufferSize)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetFieldNameW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetFieldNameA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const char *szFieldName)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetFieldNameW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const WCHAR *szFieldName)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetAppearance (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration)
 The visual appearance of the signature.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetAppearance (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, TPdfToolsSign_Appearance *pAppearance)
 The visual appearance of the signature.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetNameA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, char *pBuffer, size_t nBufferSize)
 The name of the signing certificate.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetNameW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The name of the signing certificate.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetLocationA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, char *pBuffer, size_t nBufferSize)
 The location of signing The CPU host name or physical location of the signing.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetLocationW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The location of signing The CPU host name or physical location of the signing.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetLocationA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const char *szLocation)
 The location of signing The CPU host name or physical location of the signing.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetLocationW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const WCHAR *szLocation)
 The location of signing The CPU host name or physical location of the signing.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetReasonA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, char *pBuffer, size_t nBufferSize)
 The reason for signing.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetReasonW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The reason for signing.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetReasonA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const char *szReason)
 The reason for signing.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetReasonW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const WCHAR *szReason)
 The reason for signing.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetContactInfoA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, char *pBuffer, size_t nBufferSize)
 The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetContactInfoW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetContactInfoA (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const char *szContactInfo)
 The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetContactInfoW (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration, const WCHAR *szContactInfo)
 The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.
 
PDFTOOLS_EXPORT TPdfToolsSign_SignatureConfigurationType PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetType (TPdfToolsSign_SignatureConfiguration *pSignatureConfiguration)
 Get actual derived type of base type TPdfToolsSign_SignatureConfiguration.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetFieldNameA (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration, char *pBuffer, size_t nBufferSize)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetFieldNameW (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration, WCHAR *pBuffer, size_t nBufferSize)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetFieldNameA (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration, const char *szFieldName)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetFieldNameW (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration, const WCHAR *szFieldName)
 The name of the existing signature field.
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetAppearance (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration)
 The visual appearance of the time-stamp.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetAppearance (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration, TPdfToolsSign_Appearance *pAppearance)
 The visual appearance of the time-stamp.
 
PDFTOOLS_EXPORT TPdfToolsSign_TimestampConfigurationType PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetType (TPdfToolsSign_TimestampConfiguration *pTimestampConfiguration)
 Get actual derived type of base type TPdfToolsSign_TimestampConfiguration.
 
PDFTOOLS_EXPORT TPdfToolsSign_OutputOptions *PDFTOOLS_CALL PdfToolsSign_OutputOptions_New (void)
 
PDFTOOLS_EXPORT TPdfToolsSign_SignatureRemoval PDFTOOLS_CALL PdfToolsSign_OutputOptions_GetRemoveSignatures (TPdfToolsSign_OutputOptions *pOutputOptions)
 Whether to remove any signatures.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_OutputOptions_SetRemoveSignatures (TPdfToolsSign_OutputOptions *pOutputOptions, TPdfToolsSign_SignatureRemoval iRemoveSignatures)
 Whether to remove any signatures.
 
PDFTOOLS_EXPORT TPdfToolsSign_AddValidationInformation PDFTOOLS_CALL PdfToolsSign_OutputOptions_GetAddValidationInformation (TPdfToolsSign_OutputOptions *pOutputOptions)
 Add validation information to existing signatures of input document.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_OutputOptions_SetAddValidationInformation (TPdfToolsSign_OutputOptions *pOutputOptions, TPdfToolsSign_AddValidationInformation iAddValidationInformation)
 Add validation information to existing signatures of input document.
 
PDFTOOLS_EXPORT TPdfToolsSign_MdpPermissionOptions *PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_New (TPdfToolsPdf_MdpPermissions iPermissions)
 
PDFTOOLS_EXPORT TPdfToolsPdf_MdpPermissions PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_GetPermissions (TPdfToolsSign_MdpPermissionOptions *pMdpPermissionOptions)
 The access permissions granted for the document.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_SetPermissions (TPdfToolsSign_MdpPermissionOptions *pMdpPermissionOptions, TPdfToolsPdf_MdpPermissions iPermissions)
 The access permissions granted for the document.
 
PDFTOOLS_EXPORT TPdfToolsSign_SignatureFieldOptions *PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_New (TPdfToolsSign_Appearance *pBoundingBox)
 
PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetBoundingBox (TPdfToolsSign_SignatureFieldOptions *pSignatureFieldOptions)
 The bounding box of the signature field.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetFieldNameA (TPdfToolsSign_SignatureFieldOptions *pSignatureFieldOptions, char *pBuffer, size_t nBufferSize)
 The name of the new signature field.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetFieldNameW (TPdfToolsSign_SignatureFieldOptions *pSignatureFieldOptions, WCHAR *pBuffer, size_t nBufferSize)
 The name of the new signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_SetFieldNameA (TPdfToolsSign_SignatureFieldOptions *pSignatureFieldOptions, const char *szFieldName)
 The name of the new signature field.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_SetFieldNameW (TPdfToolsSign_SignatureFieldOptions *pSignatureFieldOptions, const WCHAR *szFieldName)
 The name of the new signature field.
 
PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_PreparedDocument_GetHash (TPdfToolsSign_PreparedDocument *pPreparedDocument, TPdfToolsCrypto_HashAlgorithm iAlgorithm, unsigned char *pBuffer, size_t nBufferSize)
 Calculate the hash value Calculate the hash value to create the signature from.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_AddWarningHandlerA (TPdfToolsSign_Signer *pSigner, void *pContext, TPdfToolsSign_Signer_WarningA pFunction)
 Adds event handler.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_AddWarningHandlerW (TPdfToolsSign_Signer *pSigner, void *pContext, TPdfToolsSign_Signer_WarningW pFunction)
 Adds event handler.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_RemoveWarningHandlerA (TPdfToolsSign_Signer *pSigner, void *pContext, TPdfToolsSign_Signer_WarningA pFunction)
 Removes event handler.
 
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_RemoveWarningHandlerW (TPdfToolsSign_Signer *pSigner, void *pContext, TPdfToolsSign_Signer_WarningW pFunction)
 Removes event handler.
 
PDFTOOLS_EXPORT TPdfToolsSign_Signer *PDFTOOLS_CALL PdfToolsSign_Signer_New (void)
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_Sign (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_SignatureConfiguration *pConfiguration, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_OutputOptions *pOutputOptions)
 Add a document signature.
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_Certify (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_SignatureConfiguration *pConfiguration, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_MdpPermissionOptions *pPermissions, TPdfToolsSign_OutputOptions *pOutputOptions)
 Add a document certification signature.
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_AddTimestamp (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_TimestampConfiguration *pConfiguration, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_OutputOptions *pOutputOptions)
 Add a document time-stamp.
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_AddSignatureField (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_SignatureFieldOptions *pOptions, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_OutputOptions *pOutputOptions)
 Add an unsigned signature field.
 
PDFTOOLS_EXPORT TPdfToolsSign_PreparedDocument *PDFTOOLS_CALL PdfToolsSign_Signer_AddPreparedSignature (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_SignatureConfiguration *pConfiguration, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_OutputOptions *pOutputOptions)
 Add a prepared signature.
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_SignPreparedSignature (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, TPdfToolsSign_SignatureConfiguration *pConfiguration, const TPdfToolsSys_StreamDescriptor *pStreamDesc)
 Sign a prepared signature Sign a document that contains a prepared signature created using PdfToolsSign_Signer_AddPreparedSignature. Note that the pConfiguration must be compatible to the configuration used when preparing the signature.
 
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_Process (TPdfToolsSign_Signer *pSigner, TPdfToolsPdf_Document *pDocument, const TPdfToolsSys_StreamDescriptor *pStreamDesc, TPdfToolsSign_OutputOptions *pOutputOptions, TPdfToolsCryptoProviders_Provider *pProvider)
 Process a document.
 

Macro Definition Documentation

◆ PDFTOOLS_CALL

#define PDFTOOLS_CALL

◆ PdfToolsSign_CustomTextVariableMap_Get

#define PdfToolsSign_CustomTextVariableMap_Get   PdfToolsSign_CustomTextVariableMap_GetA

◆ PdfToolsSign_CustomTextVariableMap_GetKey

#define PdfToolsSign_CustomTextVariableMap_GetKey   PdfToolsSign_CustomTextVariableMap_GetKeyA

◆ PdfToolsSign_CustomTextVariableMap_GetValue

#define PdfToolsSign_CustomTextVariableMap_GetValue   PdfToolsSign_CustomTextVariableMap_GetValueA

◆ PdfToolsSign_CustomTextVariableMap_Set

#define PdfToolsSign_CustomTextVariableMap_Set   PdfToolsSign_CustomTextVariableMap_SetA

◆ PdfToolsSign_CustomTextVariableMap_SetValue

#define PdfToolsSign_CustomTextVariableMap_SetValue   PdfToolsSign_CustomTextVariableMap_SetValueA

◆ PdfToolsSign_SignatureConfiguration_GetContactInfo

#define PdfToolsSign_SignatureConfiguration_GetContactInfo   PdfToolsSign_SignatureConfiguration_GetContactInfoA

◆ PdfToolsSign_SignatureConfiguration_GetFieldName

#define PdfToolsSign_SignatureConfiguration_GetFieldName   PdfToolsSign_SignatureConfiguration_GetFieldNameA

◆ PdfToolsSign_SignatureConfiguration_GetLocation

#define PdfToolsSign_SignatureConfiguration_GetLocation   PdfToolsSign_SignatureConfiguration_GetLocationA

◆ PdfToolsSign_SignatureConfiguration_GetName

#define PdfToolsSign_SignatureConfiguration_GetName   PdfToolsSign_SignatureConfiguration_GetNameA

◆ PdfToolsSign_SignatureConfiguration_GetReason

#define PdfToolsSign_SignatureConfiguration_GetReason   PdfToolsSign_SignatureConfiguration_GetReasonA

◆ PdfToolsSign_SignatureConfiguration_SetContactInfo

#define PdfToolsSign_SignatureConfiguration_SetContactInfo   PdfToolsSign_SignatureConfiguration_SetContactInfoA

◆ PdfToolsSign_SignatureConfiguration_SetFieldName

#define PdfToolsSign_SignatureConfiguration_SetFieldName   PdfToolsSign_SignatureConfiguration_SetFieldNameA

◆ PdfToolsSign_SignatureConfiguration_SetLocation

#define PdfToolsSign_SignatureConfiguration_SetLocation   PdfToolsSign_SignatureConfiguration_SetLocationA

◆ PdfToolsSign_SignatureConfiguration_SetReason

#define PdfToolsSign_SignatureConfiguration_SetReason   PdfToolsSign_SignatureConfiguration_SetReasonA

◆ PdfToolsSign_SignatureFieldOptions_GetFieldName

#define PdfToolsSign_SignatureFieldOptions_GetFieldName   PdfToolsSign_SignatureFieldOptions_GetFieldNameA

◆ PdfToolsSign_SignatureFieldOptions_SetFieldName

#define PdfToolsSign_SignatureFieldOptions_SetFieldName   PdfToolsSign_SignatureFieldOptions_SetFieldNameA

◆ PdfToolsSign_Signer_AddWarningHandler

#define PdfToolsSign_Signer_AddWarningHandler   PdfToolsSign_Signer_AddWarningHandlerA

◆ PdfToolsSign_Signer_RemoveWarningHandler

#define PdfToolsSign_Signer_RemoveWarningHandler   PdfToolsSign_Signer_RemoveWarningHandlerA

◆ PdfToolsSign_TimestampConfiguration_GetFieldName

#define PdfToolsSign_TimestampConfiguration_GetFieldName   PdfToolsSign_TimestampConfiguration_GetFieldNameA

◆ PdfToolsSign_TimestampConfiguration_SetFieldName

#define PdfToolsSign_TimestampConfiguration_SetFieldName   PdfToolsSign_TimestampConfiguration_SetFieldNameA

◆ TPdfToolsSign_Signer_Warning

#define TPdfToolsSign_Signer_Warning   TPdfToolsSign_Signer_WarningA

Typedef Documentation

◆ TPdfToolsSign_Signer_WarningA

typedef void(PDFTOOLS_CALL * TPdfToolsSign_Signer_WarningA) (void *pContext, const char *szMessage, TPdfToolsSign_WarningCategory iCategory, const char *szContext)

Event for non-critical errors occurring during signature processing.

Parameters
[in,out]pContextContext of the event callback.
[in]szMessageThe message describing the warning
[in]iCategoryThe category of the warning
[in]szContextA description of the context where the warning occurred

◆ TPdfToolsSign_Signer_WarningW

typedef void(PDFTOOLS_CALL * TPdfToolsSign_Signer_WarningW) (void *pContext, const WCHAR *szMessage, TPdfToolsSign_WarningCategory iCategory, const WCHAR *szContext)

Event for non-critical errors occurring during signature processing.

Parameters
[in,out]pContextContext of the event callback.
[in]szMessageThe message describing the warning
[in]iCategoryThe category of the warning
[in]szContextA description of the context where the warning occurred

Function Documentation

◆ PdfToolsSign_Appearance_CreateFieldBoundingBox()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFieldBoundingBox ( const TPdfToolsGeomUnits_Size * pSize)

Create the bounding box for an unsigned signature field Unsigned signature fields can define a rectangle on a page. When the field is signed, the signer creates a visual appearance within that rectangle.

Parameters
[in]pSizeThe size of the rectangle
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Appearance_CreateFromJson()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFromJson ( const TPdfToolsSys_StreamDescriptor * pStreamDesc)

Create an appearance with the content loaded from a JSON file The format of the JSON file is described in the user manual.

Parameters
[in]pStreamDescThe JSON file defining the content
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_CreateFromXml()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_Appearance_CreateFromXml ( const TPdfToolsSys_StreamDescriptor * pStreamDesc)

Create an appearance with the content loaded from an XML file The format of the XML file is described in the user manual.

Parameters
[in]pStreamDescThe XML file defining the content
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_GetBottom()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetBottom ( TPdfToolsSign_Appearance * pAppearance,
double * pBottom )

Distance to bottom of page.

This property specifies the distance between appearance's bottom edge and the bottom of the page.

If NULL, the distance to the bottom is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[out]pBottomRetrieved value.
Returns
FALSE if either an error occurred or the [out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_GetCustomTextVariables()

PDFTOOLS_EXPORT TPdfToolsSign_CustomTextVariableMap *PDFTOOLS_CALL PdfToolsSign_Appearance_GetCustomTextVariables ( TPdfToolsSign_Appearance * pAppearance)

Maps the name of a custom text variable to its value. These variables can parametrize the content of the text element in the appearance configuration XML and Json files. They are used by setting "[custom:‹key›]".

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
Returns
Retrieved value.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Appearance_GetLeft()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetLeft ( TPdfToolsSign_Appearance * pAppearance,
double * pLeft )

Distance to left of page.

This property specifies the distance between appearance's left edge and the left of the page.

If NULL, the distance to the left is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[out]pLeftRetrieved value.
Returns
FALSE if either an error occurred or the [out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_GetPageNumber()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetPageNumber ( TPdfToolsSign_Appearance * pAppearance,
int * pPageNumber )

The number of the page where the appearance is positioned.

Page number must be in the range from 1 to PdfToolsPdf_Document_GetPageCount.

If NULL, the appearance is positioned on the last page.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[out]pPageNumberRetrieved value.
Returns
FALSE if either an error occurred or the [out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Appearance_GetRight()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetRight ( TPdfToolsSign_Appearance * pAppearance,
double * pRight )

Distance to right of page.

This property specifies the distance between appearance's right edge and the right of the page.

If NULL, the distance to the right is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[out]pRightRetrieved value.
Returns
FALSE if either an error occurred or the [out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_GetTop()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_GetTop ( TPdfToolsSign_Appearance * pAppearance,
double * pTop )

Distance to top of page.

This property specifies the distance between appearance's top edge and the top of the page.

If NULL, the distance to the top is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[out]pTopRetrieved value.
Returns
FALSE if either an error occurred or the [out] argument returns NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when FALSE was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_SetBottom()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetBottom ( TPdfToolsSign_Appearance * pAppearance,
const double * pBottom )

Distance to bottom of page.

This property specifies the distance between appearance's bottom edge and the bottom of the page.

If NULL, the distance to the bottom is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[in]pBottomSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_SetLeft()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetLeft ( TPdfToolsSign_Appearance * pAppearance,
const double * pLeft )

Distance to left of page.

This property specifies the distance between appearance's left edge and the left of the page.

If NULL, the distance to the left is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[in]pLeftSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_SetPageNumber()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetPageNumber ( TPdfToolsSign_Appearance * pAppearance,
const int * pPageNumber )

The number of the page where the appearance is positioned.

Page number must be in the range from 1 to PdfToolsPdf_Document_GetPageCount.

If NULL, the appearance is positioned on the last page.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[in]pPageNumberSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Appearance_SetRight()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetRight ( TPdfToolsSign_Appearance * pAppearance,
const double * pRight )

Distance to right of page.

This property specifies the distance between appearance's right edge and the right of the page.

If NULL, the distance to the right is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[in]pRightSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Appearance_SetTop()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Appearance_SetTop ( TPdfToolsSign_Appearance * pAppearance,
const double * pTop )

Distance to top of page.

This property specifies the distance between appearance's top edge and the top of the page.

If NULL, the distance to the top is unspecified.

Default: NULL

Parameters
[in,out]pAppearanceActs as a handle to the native object of type TPdfToolsSign_Appearance.
[in]pTopSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_Clear()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_Clear ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap)

Remove all entries from the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetA()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetA ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
const char * szKey )

Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with PdfToolsSign_CustomTextVariableMap_GetValue.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]szKey
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetBegin()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetBegin ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap)

Get the position of the first entry in the map.

The order of the entries is arbitrary and not significant.

If the returned position differs from PdfToolsSign_CustomTextVariableMap_GetEnd,then the position can be used to retrieve the map entry with PdfToolsSign_CustomTextVariableMap_GetKey, PdfToolsSign_CustomTextVariableMap_GetValue.

Use PdfToolsSign_CustomTextVariableMap_GetNext to get the position of the next entry.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetCount()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetCount ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap)

The number of key-value pairs in the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetEnd()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetEnd ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap)

Get the end position of the map.

This position does not correspond to an actual entry in the map.

It must be used to determine whether the end of the map has been reached when using PdfToolsSign_CustomTextVariableMap_GetBegin and PdfToolsSign_CustomTextVariableMap_GetNext.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetKeyA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetKeyA ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
char * pBuffer,
size_t nBufferSize )

Get the key of the entry given a position.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[out]pBufferTo determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if there is an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetKeyW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetKeyW ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
WCHAR * pBuffer,
size_t nBufferSize )

Get the key of the entry given a position.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[out]pBufferTo determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if there is an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetNext()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetNext ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it )

Get the position of the next entry in the map.

The order of the entries is arbitrary and not significant.

If the returned position differs from PdfToolsSign_CustomTextVariableMap_GetEnd, then the position can be used to retrieve the map entry with PdfToolsSign_CustomTextVariableMap_GetKey and PdfToolsSign_CustomTextVariableMap_GetValue.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetSize()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetSize ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap)

The number of key-value pairs in the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:
Deprecated
Deprecated in Version 1.1.0.

◆ PdfToolsSign_CustomTextVariableMap_GetValueA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetValueA ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
char * pBuffer,
size_t nBufferSize )

Get the value of the entry given a position.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[out]pBufferTo determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if there is an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetValueW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetValueW ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
WCHAR * pBuffer,
size_t nBufferSize )

Get the value of the entry given a position.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[out]pBufferTo determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if there is an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_GetW()

PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_GetW ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
const WCHAR * szKey )

Get the position of a key in the map. If no error occurred, then the position can be used to get the corresponding value with PdfToolsSign_CustomTextVariableMap_GetValue.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]szKey
Returns
May indicate an error in certain scenarios. For further information see the note section below.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_Remove()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_Remove ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it )

Remove the entry at a position in the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_SetA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetA ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
const char * szKey,
const char * szValue )

Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, PdfToolsSign_CustomTextVariableMap_GetEnd, PdfToolsSign_CustomTextVariableMap_GetNext, and PdfToolsSign_CustomTextVariableMap_Get.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]szKey
[in]szValue
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_SetValueA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetValueA ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
const char * szValue )

Set the value of the entry at a position in the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[in]szValue
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_SetValueW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetValueW ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
int it,
const WCHAR * szValue )

Set the value of the entry at a position in the map.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]it
[in]szValue
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_CustomTextVariableMap_SetW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_CustomTextVariableMap_SetW ( TPdfToolsSign_CustomTextVariableMap * pCustomTextVariableMap,
const WCHAR * szKey,
const WCHAR * szValue )

Set the value of an entry for a given key. This operation invalidates all positions previously returned by‹pre›_‹map›_GetBegin, PdfToolsSign_CustomTextVariableMap_GetEnd, PdfToolsSign_CustomTextVariableMap_GetNext, and PdfToolsSign_CustomTextVariableMap_Get.

Parameters
[in,out]pCustomTextVariableMapActs as a handle to the native object of type TPdfToolsSign_CustomTextVariableMap.
[in]szKey
[in]szValue
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_MdpPermissionOptions_GetPermissions()

PDFTOOLS_EXPORT TPdfToolsPdf_MdpPermissions PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_GetPermissions ( TPdfToolsSign_MdpPermissionOptions * pMdpPermissionOptions)

The access permissions granted for the document.

Parameters
[in,out]pMdpPermissionOptionsActs as a handle to the native object of type TPdfToolsSign_MdpPermissionOptions.
Returns
Retrieved value.

May indicate an error in certain scenarios. For further information see the note section below.

Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_MdpPermissionOptions_New()

PDFTOOLS_EXPORT TPdfToolsSign_MdpPermissionOptions *PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_New ( TPdfToolsPdf_MdpPermissions iPermissions)
Parameters
[in]iPermissions
Returns
Handle to the newly created native object.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_MdpPermissionOptions_SetPermissions()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_MdpPermissionOptions_SetPermissions ( TPdfToolsSign_MdpPermissionOptions * pMdpPermissionOptions,
TPdfToolsPdf_MdpPermissions iPermissions )

The access permissions granted for the document.

Parameters
[in,out]pMdpPermissionOptionsActs as a handle to the native object of type TPdfToolsSign_MdpPermissionOptions.
[in]iPermissionsSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_OutputOptions_GetAddValidationInformation()

PDFTOOLS_EXPORT TPdfToolsSign_AddValidationInformation PDFTOOLS_CALL PdfToolsSign_OutputOptions_GetAddValidationInformation ( TPdfToolsSign_OutputOptions * pOutputOptions)

Add validation information to existing signatures of input document.

Add signature validation information to the document security store (DSS). This information includes:

  • All certificates of the signing certificate’s trust chain, unless they are already embedded into the signature.
  • Revocation data (OCSP or CRL) for all certificates that support revocation information. This method can be used to create signatures with long-term validation material or to enlarge the longevity of existing signatures. For more details on validation information, see also TPdfToolsCrypto_ValidationInformation.

Validation information for embedded time-stamp tokens is added as well.

If adding validation information fails, an TPdfToolsSign_Signer_Warning with an ePdfToolsSign_WarningCategory_AddValidationInformationFailed is generated.

All types of cryptographic providers support this method. However, this method fails when using a provider whose certificate store is missing a required certificate.

Note: This property has no effect on any new signatures or time-stamp that may also be added. The validation information of signatures and time-stamps is controlled by the respective property in the signature or time-stamp configuration object.

Note: This method does not validate the signatures, but only downloads the information required.

Note: Adding validation information for expired certificates is not possible. Therefore, it is crucial to enlarge the longevity of signatures before they expire.

Note: Adding validation information to document certification (MDP) signatures is not possible, because it would break the signature. Validation information must be added to certification signatures when creating them.

Default: ePdfToolsSign_AddValidationInformation_None

Parameters
[in,out]pOutputOptionsActs as a handle to the native object of type TPdfToolsSign_OutputOptions.
Returns
Retrieved value.

May indicate an error in certain scenarios. For further information see the note section below.

Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_OutputOptions_GetRemoveSignatures()

PDFTOOLS_EXPORT TPdfToolsSign_SignatureRemoval PDFTOOLS_CALL PdfToolsSign_OutputOptions_GetRemoveSignatures ( TPdfToolsSign_OutputOptions * pOutputOptions)

Whether to remove any signatures.

By default, all signatures of the input document are preserved. Optionally, some or all of them can be removed.

Default: ePdfToolsSign_SignatureRemoval_None

Parameters
[in,out]pOutputOptionsActs as a handle to the native object of type TPdfToolsSign_OutputOptions.
Returns
Retrieved value.

May indicate an error in certain scenarios. For further information see the note section below.

Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_OutputOptions_New()

PDFTOOLS_EXPORT TPdfToolsSign_OutputOptions *PDFTOOLS_CALL PdfToolsSign_OutputOptions_New ( void )
Returns
Handle to the newly created native object.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_OutputOptions_SetAddValidationInformation()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_OutputOptions_SetAddValidationInformation ( TPdfToolsSign_OutputOptions * pOutputOptions,
TPdfToolsSign_AddValidationInformation iAddValidationInformation )

Add validation information to existing signatures of input document.

Add signature validation information to the document security store (DSS). This information includes:

  • All certificates of the signing certificate’s trust chain, unless they are already embedded into the signature.
  • Revocation data (OCSP or CRL) for all certificates that support revocation information. This method can be used to create signatures with long-term validation material or to enlarge the longevity of existing signatures. For more details on validation information, see also TPdfToolsCrypto_ValidationInformation.

Validation information for embedded time-stamp tokens is added as well.

If adding validation information fails, an TPdfToolsSign_Signer_Warning with an ePdfToolsSign_WarningCategory_AddValidationInformationFailed is generated.

All types of cryptographic providers support this method. However, this method fails when using a provider whose certificate store is missing a required certificate.

Note: This property has no effect on any new signatures or time-stamp that may also be added. The validation information of signatures and time-stamps is controlled by the respective property in the signature or time-stamp configuration object.

Note: This method does not validate the signatures, but only downloads the information required.

Note: Adding validation information for expired certificates is not possible. Therefore, it is crucial to enlarge the longevity of signatures before they expire.

Note: Adding validation information to document certification (MDP) signatures is not possible, because it would break the signature. Validation information must be added to certification signatures when creating them.

Default: ePdfToolsSign_AddValidationInformation_None

Parameters
[in,out]pOutputOptionsActs as a handle to the native object of type TPdfToolsSign_OutputOptions.
[in]iAddValidationInformationSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_OutputOptions_SetRemoveSignatures()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_OutputOptions_SetRemoveSignatures ( TPdfToolsSign_OutputOptions * pOutputOptions,
TPdfToolsSign_SignatureRemoval iRemoveSignatures )

Whether to remove any signatures.

By default, all signatures of the input document are preserved. Optionally, some or all of them can be removed.

Default: ePdfToolsSign_SignatureRemoval_None

Parameters
[in,out]pOutputOptionsActs as a handle to the native object of type TPdfToolsSign_OutputOptions.
[in]iRemoveSignaturesSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_PreparedDocument_GetHash()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_PreparedDocument_GetHash ( TPdfToolsSign_PreparedDocument * pPreparedDocument,
TPdfToolsCrypto_HashAlgorithm iAlgorithm,
unsigned char * pBuffer,
size_t nBufferSize )

Calculate the hash value Calculate the hash value to create the signature from.

Parameters
[in,out]pPreparedDocumentActs as a handle to the native object of type TPdfToolsSign_PreparedDocument.
[in]iAlgorithmThe hash algorithm
[out]pBufferTo determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved array pBuffer.
Returns
The amount of data written to the buffer pBuffer. -1 if there is an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureConfiguration_GetAppearance()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetAppearance ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration)

The visual appearance of the signature.

The visual appearance or NULL to create a signature without a visual appearance.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
Returns
Retrieved value.

NULL if either an error occurred or the returned object is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.

Note
An error occurred when NULL was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetContactInfoA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetContactInfoA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
char * pBuffer,
size_t nBufferSize )

The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetContactInfoW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetContactInfoW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetFieldNameA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetFieldNameA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
char * pBuffer,
size_t nBufferSize )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_SignatureConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetFieldNameW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetFieldNameW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_SignatureConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetLocationA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetLocationA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
char * pBuffer,
size_t nBufferSize )

The location of signing The CPU host name or physical location of the signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetLocationW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetLocationW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The location of signing The CPU host name or physical location of the signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetNameA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetNameA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
char * pBuffer,
size_t nBufferSize )

The name of the signing certificate.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetNameW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetNameW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The name of the signing certificate.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetReasonA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetReasonA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
char * pBuffer,
size_t nBufferSize )

The reason for signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetReasonW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetReasonW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The reason for signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_GetType()

PDFTOOLS_EXPORT TPdfToolsSign_SignatureConfigurationType PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_GetType ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration)

Get actual derived type of base type TPdfToolsSign_SignatureConfiguration.

This function is invoked prior to downcasting to ascertain the derived object type.

Parameters
[in,out]pSignatureConfigurationActs as a handle to a native object.
Returns
The item of the enumeration TPdfToolsSign_SignatureConfigurationType that refers to the actual derived type. 0 in case of an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureConfiguration_SetAppearance()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetAppearance ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
TPdfToolsSign_Appearance * pAppearance )

The visual appearance of the signature.

The visual appearance or NULL to create a signature without a visual appearance.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in,out]pAppearanceSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetContactInfoA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetContactInfoA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const char * szContactInfo )

The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szContactInfoSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetContactInfoW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetContactInfoW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const WCHAR * szContactInfo )

The contact information of the signer Information provided by the signer to enable a recipient to contact the signer to verify the signature. For example, a phone number.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szContactInfoSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetFieldNameA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetFieldNameA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const char * szFieldName )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_SignatureConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetFieldNameW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetFieldNameW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const WCHAR * szFieldName )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to sign. Note that when an existing signature field is signed, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_SignatureConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetLocationA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetLocationA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const char * szLocation )

The location of signing The CPU host name or physical location of the signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szLocationSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetLocationW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetLocationW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const WCHAR * szLocation )

The location of signing The CPU host name or physical location of the signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szLocationSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetReasonA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetReasonA ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const char * szReason )

The reason for signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szReasonSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureConfiguration_SetReasonW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureConfiguration_SetReasonW ( TPdfToolsSign_SignatureConfiguration * pSignatureConfiguration,
const WCHAR * szReason )

The reason for signing.

Parameters
[in,out]pSignatureConfigurationActs as a handle to the native object of type TPdfToolsSign_SignatureConfiguration.
[in]szReasonSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureFieldOptions_GetBoundingBox()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetBoundingBox ( TPdfToolsSign_SignatureFieldOptions * pSignatureFieldOptions)

The bounding box of the signature field.

The bounding box is the area where the visual appearance of the signature is inserted, when the signature field is signed.

Use PdfToolsSign_Appearance_CreateFieldBoundingBox to create the bounding box object.

Parameters
[in,out]pSignatureFieldOptionsActs as a handle to the native object of type TPdfToolsSign_SignatureFieldOptions.
Returns
Retrieved value.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureFieldOptions_GetFieldNameA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetFieldNameA ( TPdfToolsSign_SignatureFieldOptions * pSignatureFieldOptions,
char * pBuffer,
size_t nBufferSize )

The name of the new signature field.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureFieldOptionsActs as a handle to the native object of type TPdfToolsSign_SignatureFieldOptions.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureFieldOptions_GetFieldNameW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_GetFieldNameW ( TPdfToolsSign_SignatureFieldOptions * pSignatureFieldOptions,
WCHAR * pBuffer,
size_t nBufferSize )

The name of the new signature field.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureFieldOptionsActs as a handle to the native object of type TPdfToolsSign_SignatureFieldOptions.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureFieldOptions_New()

PDFTOOLS_EXPORT TPdfToolsSign_SignatureFieldOptions *PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_New ( TPdfToolsSign_Appearance * pBoundingBox)
Parameters
[in,out]pBoundingBoxThe bounding box of the signature field
Returns
Handle to the newly created native object.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_SignatureFieldOptions_SetFieldNameA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_SetFieldNameA ( TPdfToolsSign_SignatureFieldOptions * pSignatureFieldOptions,
const char * szFieldName )

The name of the new signature field.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureFieldOptionsActs as a handle to the native object of type TPdfToolsSign_SignatureFieldOptions.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_SignatureFieldOptions_SetFieldNameW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_SignatureFieldOptions_SetFieldNameW ( TPdfToolsSign_SignatureFieldOptions * pSignatureFieldOptions,
const WCHAR * szFieldName )

The name of the new signature field.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pSignatureFieldOptionsActs as a handle to the native object of type TPdfToolsSign_SignatureFieldOptions.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_AddPreparedSignature()

PDFTOOLS_EXPORT TPdfToolsSign_PreparedDocument *PDFTOOLS_CALL PdfToolsSign_Signer_AddPreparedSignature ( TPdfToolsSign_Signer * pSigner,
TPdfToolsPdf_Document * pDocument,
TPdfToolsSign_SignatureConfiguration * pConfiguration,
const TPdfToolsSys_StreamDescriptor * pStreamDesc,
TPdfToolsSign_OutputOptions * pOutputOptions )

Add a prepared signature.

Adding a prepared signature is only required in very particular or specialized use cases. This method is the same as PdfToolsSign_Signer_Sign, but without actually creating the cryptographic signature. The cryptographic signature can be inserted later using PdfToolsSign_Signer_SignPreparedSignature.

While the pConfiguration can be created by any TPdfToolsCryptoProviders_Provider, it is typically created by PdfToolsCryptoProvidersBuiltIn_Provider_CreatePreparedSignature.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to add the prepared signature
[in,out]pConfigurationThe signature configuration
[out]pStreamDescThe stream where the output document is written
[in,out]pOutputOptionsDocument-level output options not directly related to preparing the signature
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_AddSignatureField()

PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_AddSignatureField ( TPdfToolsSign_Signer * pSigner,
TPdfToolsPdf_Document * pDocument,
TPdfToolsSign_SignatureFieldOptions * pOptions,
const TPdfToolsSys_StreamDescriptor * pStreamDesc,
TPdfToolsSign_OutputOptions * pOutputOptions )

Add an unsigned signature field.

Add an unsigned signature field that can later be signed (see TPdfToolsPdf_UnsignedSignatureField).

Non-critical processing errors raise a TPdfToolsSign_Signer_Warning. It is recommended to review the TPdfToolsSign_WarningCategory and handle them if necessary for the application.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to add the signature field to
[in,out]pOptionsThe options for the unsigned signature field
[out]pStreamDescThe stream where the output document is written
[in,out]pOutputOptionsDocument-level output options not directly related to the signature field
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_AddTimestamp()

PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_AddTimestamp ( TPdfToolsSign_Signer * pSigner,
TPdfToolsPdf_Document * pDocument,
TPdfToolsSign_TimestampConfiguration * pConfiguration,
const TPdfToolsSys_StreamDescriptor * pStreamDesc,
TPdfToolsSign_OutputOptions * pOutputOptions )

Add a document time-stamp.

This type of signature provides evidence that the document existed at a specific time and protects the document’s integrity.

The features and format of the signature are defined by the TPdfToolsCryptoProviders_Provider and the pConfiguration.

Non-critical processing errors raise a TPdfToolsSign_Signer_Warning. It is recommended to review the TPdfToolsSign_WarningCategory and handle them if necessary for the application.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to add a time-stamp to
[in,out]pConfigurationThe time-stamp configuration
[out]pStreamDescThe stream where the output document is written
[in,out]pOutputOptionsDocument-level output options not directly related to the document time-stamp
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_AddWarningHandlerA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_AddWarningHandlerA ( TPdfToolsSign_Signer * pSigner,
void * pContext,
TPdfToolsSign_Signer_WarningA pFunction )

Adds event handler.

Parameters
[in,out]pSignerPointer to the object to which the event handler is added.
[in,out]pContextThe context of the event handler.
[in]pFunctionThe event callback that is added.
Returns
TRUE if adding event handler was successful; FALSE if error occured.
Note
In case of an error, Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_AddWarningHandlerW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_AddWarningHandlerW ( TPdfToolsSign_Signer * pSigner,
void * pContext,
TPdfToolsSign_Signer_WarningW pFunction )

Adds event handler.

Parameters
[in,out]pSignerPointer to the object to which the event handler is added.
[in,out]pContextThe context of the event handler.
[in]pFunctionThe event callback that is added.
Returns
TRUE if adding event handler was successful; FALSE if error occured.
Note
In case of an error, Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_Certify()

Add a document certification signature.

This type of signature lets you detect rejected changes specified by the author. These signatures are also called Modification Detection and Prevention (MDP) signatures. The allowed permissions are defined by pPermissions.

The features and format of the signature are defined by the TPdfToolsCryptoProviders_Provider and the pConfiguration.

Non-critical processing errors raise a TPdfToolsSign_Signer_Warning. It is recommended to review the TPdfToolsSign_WarningCategory and handle them if necessary for the application.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to certify
[in,out]pConfigurationThe signature configuration
[out]pStreamDescThe stream where the certified document is written
[in,out]pPermissionsThe permissions allowed. The default is ePdfToolsPdf_MdpPermissions_NoChanges.
[in,out]pOutputOptionsDocument-level output options not directly related to the document certification
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_New()

PDFTOOLS_EXPORT TPdfToolsSign_Signer *PDFTOOLS_CALL PdfToolsSign_Signer_New ( void )
Returns
Handle to the newly created native object.

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_Process()

Process a document.

Apply document-level processing options without any signature operation. For example:

Non-critical processing errors raise a TPdfToolsSign_Signer_Warning. It is recommended to review the TPdfToolsSign_WarningCategory and handle them if necessary for the application.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to process
[out]pStreamDescThe stream where the output document is written
[in,out]pOutputOptionsThe document-level processing options
[in,out]pProviderThe cryptographic provider to use to add validation information to existing signatures of input document (see PdfToolsSign_OutputOptions_GetAddValidationInformation). Can be NULL if no validation information is added or to use the default provider.
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_RemoveWarningHandlerA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_RemoveWarningHandlerA ( TPdfToolsSign_Signer * pSigner,
void * pContext,
TPdfToolsSign_Signer_WarningA pFunction )

Removes event handler.

Parameters
[in,out]pSignerPointer to the object from which the event handler is removed.
[in,out]pContextThe context of the event handler.
[in]pFunctionThe event callback that is removed.
Returns
TRUE if removal was successful; FALSE if error occured.
Note
In case of an error, Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_RemoveWarningHandlerW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_Signer_RemoveWarningHandlerW ( TPdfToolsSign_Signer * pSigner,
void * pContext,
TPdfToolsSign_Signer_WarningW pFunction )

Removes event handler.

Parameters
[in,out]pSignerPointer to the object from which the event handler is removed.
[in,out]pContextThe context of the event handler.
[in]pFunctionThe event callback that is removed.
Returns
TRUE if removal was successful; FALSE if error occured.
Note
In case of an error, Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_Signer_Sign()

Add a document signature.

Document signatures are sometimes also called approval signatures. This type of signature lets you verify the integrity of the signed part of the document and authenticate the signer’s identity.

The features and format of the signature are defined by the TPdfToolsCryptoProviders_Provider and the pConfiguration.

Non-critical processing errors raise a TPdfToolsSign_Signer_Warning. It is recommended to review the TPdfToolsSign_WarningCategory and handle them if necessary for the application.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to sign
[in,out]pConfigurationThe signature configuration
[out]pStreamDescThe stream where the signed document is written
[in,out]pOutputOptionsDocument-level output options not directly related to the signature
Returns
The signed document

NULL if there is an error.

Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_Signer_SignPreparedSignature()

PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL PdfToolsSign_Signer_SignPreparedSignature ( TPdfToolsSign_Signer * pSigner,
TPdfToolsPdf_Document * pDocument,
TPdfToolsSign_SignatureConfiguration * pConfiguration,
const TPdfToolsSys_StreamDescriptor * pStreamDesc )

Sign a prepared signature Sign a document that contains a prepared signature created using PdfToolsSign_Signer_AddPreparedSignature. Note that the pConfiguration must be compatible to the configuration used when preparing the signature.

Parameters
[in,out]pSignerActs as a handle to the native object of type TPdfToolsSign_Signer.
[in,out]pDocumentThe input document to sign
[in,out]pConfigurationThe signature configuration
[out]pStreamDescThe stream where the signed document is written
Returns
NULL if there is an error.
Note
An error occurred when NULL was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_GetAppearance()

PDFTOOLS_EXPORT TPdfToolsSign_Appearance *PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetAppearance ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration)

The visual appearance of the time-stamp.

The visual appearance or NULL to create a time-stamp without a visual appearance.

For time-stamps, not all text variables are available, most notably the [signature:name].

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
Returns
Retrieved value.

NULL if either an error occurred or the returned object is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.

Note
An error occurred when NULL was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_GetFieldNameA()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetFieldNameA ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration,
char * pBuffer,
size_t nBufferSize )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_TimestampConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_GetFieldNameW()

PDFTOOLS_EXPORT size_t PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetFieldNameW ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration,
WCHAR * pBuffer,
size_t nBufferSize )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_TimestampConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
[out]pBufferRetrieved value. To determine the required buffer size, the function has to be called with NULL. The return value of this function specifies the buffer size.
[in]nBufferSizeThe buffer size of the retrieved string pBuffer.
Returns
The amount of data written to the buffer pBuffer. 0 if either an error occurred or the returned buffer is actually NULL. To determine if an error has occurred, check the error code as described in the note section below.
Note
An error occurred when 0 was returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_GetType()

PDFTOOLS_EXPORT TPdfToolsSign_TimestampConfigurationType PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_GetType ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration)

Get actual derived type of base type TPdfToolsSign_TimestampConfiguration.

This function is invoked prior to downcasting to ascertain the derived object type.

Parameters
[in,out]pTimestampConfigurationActs as a handle to a native object.
Returns
The item of the enumeration TPdfToolsSign_TimestampConfigurationType that refers to the actual derived type. 0 in case of an error.
Note
An error occurred when 0 was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage.

◆ PdfToolsSign_TimestampConfiguration_SetAppearance()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetAppearance ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration,
TPdfToolsSign_Appearance * pAppearance )

The visual appearance of the time-stamp.

The visual appearance or NULL to create a time-stamp without a visual appearance.

For time-stamps, not all text variables are available, most notably the [signature:name].

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
[in,out]pAppearanceSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_SetFieldNameA()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetFieldNameA ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration,
const char * szFieldName )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_TimestampConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:

◆ PdfToolsSign_TimestampConfiguration_SetFieldNameW()

PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsSign_TimestampConfiguration_SetFieldNameW ( TPdfToolsSign_TimestampConfiguration * pTimestampConfiguration,
const WCHAR * szFieldName )

The name of the existing signature field.

The PdfToolsPdf_SignatureField_GetFieldName of an existing, unsigned signature field to time-stamp. Note that when an existing signature field is used, the appearance's position is defined by the existing field. Therefore, make sure the PdfToolsSign_TimestampConfiguration_GetAppearance fits into the PdfToolsPdf_SignatureField_GetBoundingBox.

If NULL, a new signature field is created using a unique field name.

Default: NULL

Parameters
[in,out]pTimestampConfigurationActs as a handle to the native object of type TPdfToolsSign_TimestampConfiguration.
[in]szFieldNameSet value.
Returns
TRUE if the operation is successful; FALSE if there is an error.
Note
An error occurred when FALSE was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes: