DL Logo

General Definitions

FOUR_CHAR_CODE

Header: DLExtrasExpT.h:16

Syntax

#define FOUR_CHAR_CODE ( x )( x )

General Enumerations

AC_OptionCode

Header: DLExtrasExpT.h:22

Description

Datalogics-specific flags for the Acro Color Layer.

Enum Constants

AC_Option_BlackPointCompensation=FOUR_CHAR_CODE('kptc')
Controls whether to adjust for differences in black points when converting colors between color spaces. If enabled the full dynamic range of the source space is mapped into the full dynamic range of the destination space. If disabled, the dynamic range of the source space is simulated in the destination space (which can result in blocked or gray shadows) This option is ignored if the rendering intent for the transformation is AC_AbsColorimetric. Default is 0 (zero).
AC_Option_Dither8=FOUR_CHAR_CODE('dth8')
Dither transformations to 8 bit color spaces. This may be ignored by optimized transforms. This option is used by AC_ApplyTransform. Default is 0 (zero).
AC_OptionCode_MaxEnum=0xFFFFFFFFL

Used By

CredentialStorageFmt

Header: DLExtrasExpT.h:629

Description

Enumeration to specify whether user-credentials reside on-disk or are cached in memory.

Enum Constants

OnDisk=0
Credential resides on-disk.
InMemory
Credential is cached in memory.

Used By

DLImageExportType

Header: DLExtrasExpT.h:439

Description

Export Image Types.

Enum Constants

ExportType_Invalid
Used for error handeling
ExportType_TIF
Tagged Image File Format
ExportType_JPEG
Joint Photographic Experts Group
ExportType_BMP
Microsoft Windows Bitmap
ExportType_PNG
Portable Network Graphic
ExportType_GIF
Graphics Interchange Format

Returned From

Used By

DigestCategory

Header: DLExtrasExpT.h:637

Description

Enumeration to specify cryptographic hash functions that generate variable-length message digests required for digital signature creation.

Enum Constants

sha1=0
SHA-1 message digest comprised of a 160-bit hash value.
sha224
SHA-2 message digest comprised of a 224-bit hash value.
sha256
SHA-2 message digest comprised of a 256-bit hash value.
sha384
SHA-2 message digest comprised of a 384-bit hash value.
sha512
SHA-2 message digest comprised of a 512-bit hash value.
sha3_224
SHA-3 message digest comprised of a 224-bit hash value.
sha3_256
SHA-3 message digest comprised of a 256-bit hash value.
sha3_384
SHA-3 message digest comprised of a 384-bit hash value.
sha3_512
SHA-3 message digest comprised of a 512-bit hash value.
shake128
Extendable Output Function that generates a message digest comprised of a 128-bit hash value.
shake256
Extendable Output Function that generates a message digest comprised of a 256-bit hash value.

Returned From

Used By

DisplayTraits

Header: DLExtrasExpT.h:663

Description

Enumeration to specify fields to display as part of signature appearance.

Enum Constants

kDisplayNone=0x0
Do not display text labels or logo image. Note that specifying this option results in an empty signature appearance.
kDisplayAll=0x1
Display all available text labels and logo image. Note that the application expects valid data to be supplied for each available label that will be displayed as a result of this option being selected.
kDisplayName=0x2
Display the Name label.
kDisplayReason=0x4
Display the Reason label.
kDisplayLocation=0x8
Display the Location label.
kDisplayDate=0x10
Display the Date label.
kDisplayContactInfo=0x20
Display the ContactInfo label.
kDisplayDN=0x40
Display the Signer Certificate's Distinguished Name label.
Display logo image.

FontRescanFlags

Header: DLExtrasExpT.h:73

Description

flags for rescanning font directories for additional fonts after Library initialization.

Enum Constants

FontRescan_Files=1
This will rescan just the fields defined in dirList, plus those added with PDFLAddFontDirectories.
FontRescan_System=2
This will rescan the system directories.
FontRescan_All=3
This, or an "or" of the previous two, will rescan both.

Used By

SignatureFieldID

Header: DLExtrasExpT.h:587

Description

Enumeration to specify identifying information of the form field expected to contain the digital signature.

Enum Constants

SearchForFirstUnsignedField=0
Search for the first available signature field, i.e., a field that does not contain a signature. No new signature field is created if none found. Exception raised if not found.
FieldCosObject
Cos object of an existing signature field that does not contain a signature. No new signature field is created if not found. Exception raised if not found.
FullyQualifiedFieldName
Fully qualified field name of a valid T entry in an existing field dictionary that is expected to contain the digital signature. Refer PDF specification ISO 32000-2:2020, Section 12.7.4.2 for additional information. No new signature field is created if not found. Exception raised if not found.
CreateFieldWithQualifiedName
Creates a new signature field to be signed using the T-entry fully qualified field name provided. The signature field created will contain neither parent nor child entries, i.e., the partial field name is the same as the fully qualified field name, per PDF specification ISO 32000-2:2020 Section 12.7.4.2. Field name provided shall not be separated by a period (.) character. Appearance of the generated signature field is determined by widget annotation attributes specified by signatureBoxInfo. If signatureBoxInfo is undefined, the annotation is not drawn, resulting in the creation of an invisible signature field on the first page.

Returned From

Used By

_t_CredentialDataFmt

Header: DLExtrasExpT.h:621

Description

Enumeration to specify user-credential format.

Enum Constants

NonPFX=0
Base64-encoded or Binary DER (ASN.1 Distinguished Encoding Rules) format.
PFX
PKCS#12 format.

General Typedefs

PDSignDocSaveParams

Header: DLExtrasExpT.h:695

Description

Type that specifies the parameters required for saving the document to which a digital signature is added.

Syntax

typedef struct _t_PDSignDocSaveParams *PDSignDocSaveParams;

Returned From

Used By

PDSignDocSignParams

Header: DLExtrasExpT.h:692

Description

Type that specifies the parameters required for adding a digital signature to a document.

Syntax

typedef struct _t_PDSignDocSignParams *PDSignDocSignParams;

Returned From

Used By

General Functions

ACGetOption

Header: DLExtrasProcs.h:129

Description

Returns the current value for the given AC_OptionCode. This call controls the behavior of colorspace conversions and manipulations carried out via AC-layer calls; it does not impact other Adobe PDF Library color behaviors.

Related Methods

Syntax

AC_Error ACGetOption(AC_OptionCode code, ASUns32 *value);

Parameters

code
AC_Option_BlackPointCompensation indicates whether the Acrobat Color Engine will carry out black point compensation when converting between colorspaces with different black points.
value
AC_Option_BlackPointCompensation flag value to be retrieved (Filled by the method)

Returns

Indicates if an error occurred.

ACSetOption

Header: DLExtrasProcs.h:140

Description

Sets the current value for the option specified by the supplied AC_OptionCode. This call controls the behavior of colorspace conversions and manipulations carried out via AC-layer calls; it does not impact other Adobe PDF Library color behaviors.

Related Methods

Syntax

AC_Error ACSetOption(AC_OptionCode code, ASUns32 value);

Parameters

The
option code.
value
The flag value to be set.

Returns

Indicates if an error occurred.

ASSetDefaultFileSys

Header: DLExtrasProcs.h:19

Description

Sets the default file system implementation for a platform. Added by Datalogics.

Syntax

void ASSetDefaultFileSys(ASFileSys fileSys);

Parameters

fileSys
Alternate file system to be used

ConvertPDFToExcel

Header: DLExtrasProcs.h:1068

Description

Converts a PDF file from the specified file path to a Microsoft Excel document (.xlsx) at the specified file path.

Syntax

ASBool ConvertPDFToExcel(ASPathName inputPath, ASPathName outputPath, ASFileSys fileSys);

Parameters

inputPath
The input path of the PDF document.
outputPath
The output path of the Office document.
fileSys
The File System in use.

Returns

if True, the Conversion was successful.

ConvertPDFToPowerPoint

Header: DLExtrasProcs.h:1079

Description

Converts a PDF file from the specified file path to a Microsoft Powerpoint document (.pptx) at the specified file path.

Syntax

ASBool ConvertPDFToPowerPoint(ASPathName inputPath, ASPathName outputPath, ASFileSys fileSys);

Parameters

inputPath
The input path of the PDF document.
outputPath
The output path of the Office document.
fileSys
The File System in use.

Returns

if True, the Conversion was successful.

ConvertPDFToWord

Header: DLExtrasProcs.h:1057

Description

Converts a PDF file from the specified file path to a Microsoft Word document (.docx) at the specified file path.

Syntax

ASBool ConvertPDFToWord(ASPathName inputPath, ASPathName outputPath, ASFileSys fileSys);

Parameters

inputPath
The input path of the PDF document.
outputPath
The output path of the Office document.
fileSys
The File System in use.

Returns

if True, the Conversion was successful.

DLCreatePDEImageFromASFile

Header: DLExtrasProcs.h:1479

Description

Imports an image file (TIFF, JPEG, BMP, PNG, GIF) from the specified ASFile to a PDEImage.

Syntax

PDEImage DLCreatePDEImageFromASFile(ASFile file);

Parameters

file
The ASFile representing the file.

Returns

A PDEImage object created from the input image.

DLCreatePDEImagesFromASFile

Header: DLExtrasProcs.h:1488

Description

Imports a multipage TIFF from the specified ASFile to a collection of PDEImage's.

Syntax

PDEImage *DLCreatePDEImagesFromASFile(ASFile file);

Parameters

file
The ASFile representing the file.

Returns

A pointer to a null-terminated array of PDEImage's created from the input TIFF image.

DLCreatePDEImagesFromTIFF

Header: DLExtrasProcs.h:1452

Description

Imports a multipage TIFF from the specified file path to a collection of PDEImage's.

Syntax

PDEImage *DLCreatePDEImagesFromTIFF(ASPathName imageInputPath, ASFileSys fileSys);

Parameters

imageInputPath
The input path of the TIFF.
fileSys
The File System in use.

Returns

A pointer to a null-terminated array of PDEImage's created from the input TIFF image.

DLEnableLicensedBehavior

Header: DLExtrasProcs.h:21

Syntax

ASBool DLEnableLicensedBehavior(const char *keyVal, const char *additionalInfo);

DLExportImageToNChannelTIFF

Header: DLExtrasProcs.h:1493

Description

For Internal Use only.

Syntax

void DLExportImageToNChannelTIFF(char *buffer, size_t bufferSize, ASInt32 width, ASInt32 height, ASPathName outputPath, DLPDEImageExportParams exportParams, PDPageInk inks);

DLExportPDEImagesToTIFF

Header: DLExtrasProcs.h:1461

Description

Exports a collection of PDEImage's to a multipage TIFF at the specified file path.

Syntax

void DLExportPDEImagesToTIFF(PDEImage *images, ASPathName outputPath, DLPDEImageExportParams exportParams);

Parameters

image
A null-terminated array of PDEImage's of interest.
outputPath
The output path of the TIFF file.
exportParams
The DLPDEImageExportParams structure.

DLGetImageType

Header: DLExtrasProcs.h:1470

Description

Gets the image file type (TIFF, JPEG, BMP, PNG, GIF).

Syntax

DLImageExportType DLGetImageType(ASFile file);

Parameters

file
The ASFile representing the file.

Returns

A DLImageExportType value representing the file type.

PDFLAddFontDirectories

Header: DLExtrasProcs.h:457

Description

This call allows Adobe PDF Library to rescan for fonts without re-initializing. This will allow an operating Library process to detect and update new font directories and resources after startup, without requiring a restart and re-initialization.

This will add one or more directories, and the fonts within them, to the set of all directories containing fonts (those specified in the DirList string arrays of resource locations).

This call should be followed by a call to PDFLRescanFontDirectories after all new font directories have been loaded.

Related Methods

Syntax

ASBool PDFLAddFontDirectories(ASInt32 pathCount, ASPathName *paths);

Parameters

pathCount
Number of new paths to be added.
paths
Paths to new resource locations to be added.

Returns

Indicates if fonts directories were changed.

PDFLReinit

Header: PDFLProcs.h:692

Description

Warm reinitialization of the Adobe PDF Library. Call this method if you closed all documents and other PD/PDE/Cos objects. Releases memory used for cached data.

Syntax

ASInt32 PDFLReinit(void);

PDFLRescanFontDirectories

Header: DLExtrasProcs.h:443

Description

This call allows Adobe PDF Library to rescan for fonts without re-initializing. This will allow an operating Library process to detect and update new font directories and resources after startup, without requiring a restart and re-initialization.

This call can, depending on flag settings, force a rescan of font resource areas defined in your dirList array, a rescan of those residing in the System folder, or both. To add new font resources to your dirList array, use the PDFLAddFontDirectories call.

Related Methods

Syntax

ASBool PDFLRescanFontDirectories(FontRescanFlags flags);

Parameters

flags
Flags controlling rescan process.

Returns

Indicates if fonts directories were changed.

PDSignDocGetCredentialDataFormat

Header: DLExtrasProcs.h:1657

Description

This will get the credential format name option.

Syntax

CredentialDataFmt PDSignDocGetCredentialDataFormat(PDSignDocSignParams params);

Parameters

params
IN Object to be verified.

Returns

Format of user-credentials used to sign the document.

PDSignDocGetDigestCategory

Header: DLExtrasProcs.h:1643

Description

This will get the digest category option.

Syntax

DigestCategory PDSignDocGetDigestCategory(PDSignDocSignParams params);

Parameters

IN
params PDSignDocSignParams object to be checked

Returns

Member of the enumeration DigestCategory, which option to set.

PDSignDocGetDocMajorVersionNumber

Header: DLExtrasProcs.h:1801

Description

This will return the document's major version number.

Syntax

PDDocVersion PDSignDocGetDocMajorVersionNumber(PDSignDocSaveParams params);

Parameters

params
IN Object to be checked.

Returns

The major PDF version number of the document.

PDSignDocGetDocMinorVersionNumber

Header: DLExtrasProcs.h:1815

Description

This will return the document's minor version number.

Syntax

PDDocVersion PDSignDocGetDocMinorVersionNumber(PDSignDocSaveParams params);

Parameters

params
IN Object to be checked.

Returns

The minor PDF version number of the document.

PDSignDocGetFieldID

Header: DLExtrasProcs.h:1570

Description

This will get the field ID option.

Syntax

SignatureFieldID PDSignDocGetFieldID(PDSignDocSignParams params);

Parameters

IN

Returns

SignatureFieldID choice currently set

PDSignDocGetFieldName

Header: DLExtrasProcs.h:1584

Description

This will get the form field fully qualified name of the form field that contains the digital signature.

Syntax

ASConstText PDSignDocGetFieldName(PDSignDocSignParams params);

Parameters

params
IN PDSignDocSignParams object to be checked

Returns

Fully qualified field name. May return NULL based on the SignatureFieldID attribute defined by the user.

PDSignDocGetFieldObject

Header: DLExtrasProcs.h:1599

Description

This will get the Cos object of the field dictionary that contains the digital signature.

Syntax

CosObj PDSignDocGetFieldObject(PDSignDocSignParams params);

Parameters

params
IN PDSignDocSignParams object to be checked

Returns

Cos object identifying the field dictionary that contains the digital signature. May return NULL based on the SignatureFieldID attribute defined by the user.

PDSignDocGetOutputPath

Header: DLExtrasProcs.h:1759

Description

This will get the output path to which the document is saved.

Syntax

ASPathName PDSignDocGetOutputPath(PDSignDocSaveParams params);

Parameters

params
IN Object to be verified.

Returns

The path to which the signed document is saved.

PDSignDocGetSignatureBoxPageNumber

Header: DLExtrasProcs.h:1614

Description

This will get the page number on which the widget annotation of the signature field is created.

Syntax

ASUns32 PDSignDocGetSignatureBoxPageNumber(PDSignDocSignParams params);

Parameters

params
IN Object to be checked.

Returns

The page number on which signature field's widget annotation is created. A value of zero is returned if page number was not set.

PDSignDocGetSignatureBoxRectangle

Header: DLExtrasProcs.h:1629

Description

This will get the dimension of the annotation rectangle of the signature field being created.

Syntax

ASFixedRectP PDSignDocGetSignatureBoxRectangle(PDSignDocSignParams params);

Parameters

params
IN Object to be checked.

Returns

Dimension of the annotation rectangle of the signature field being created. A value of {0,0,0,0} is returned if annotation rectangle dimension was not set.

PDSignDocSaveInitParams

Header: DLExtrasProcs.h:1738

Description

This will create a set of parameters used for saving the document to which a digital signature has been added. The parameters are set to default values and can be examined using "get" methods, and modified via "set" methods.

When these parameters are no longer needed (after the call to PDSignDocWithParams, although they can be re-used any number of times), they should be freed by the method PDSignDocSaveReleaseParams.

Syntax

PDSignDocSaveParams PDSignDocSaveInitParams(void);

Returns

initialized document signature parameters that can be further modified.

PDSignDocSaveReleaseParams

Header: DLExtrasProcs.h:1745

Description

This will completely free the resources used by a PDSignDocSaveParams structure.

Syntax

void PDSignDocSaveReleaseParams(PDSignDocSaveParams params);

Parameters

params
IN Object to de-allocate.

PDSignDocSetCancelProc

Header: DLExtrasProcs.h:1786

Description

This will set the cancel process callback and client data for the callback.

Syntax

void PDSignDocSetCancelProc(PDSignDocSaveParams params, ASCancelProc cancelProc, void *cancelProcClientData);

Parameters

params
IN Object to be modified.
cancelProc

IN

A callback to test whether an operation should be cancelled. A CancelProc is typically passed to some method that takes a long time to complete. At frequent intervals, the method calls the CancelProc. If it returns true, then the method cancels its operation; if false, it continues.

cancelProcClientData

IN

Pointer to user-supplied data to pass to cancelProc each time it is called. It must be NULL if cancelProc is NULL.

PDSignDocSetCredentialDataFormat

Header: DLExtrasProcs.h:1650

Description

This will set the credential format option.

Syntax

void PDSignDocSetCredentialDataFormat(PDSignDocSignParams params, CredentialDataFmt dataFmt);

Parameters

params
IN Object to be modified.
dataFmt
IN Encoding format of credentials used to sign a document.

PDSignDocSetDigestCategory

Header: DLExtrasProcs.h:1636

Description

This will set the digest category option.

Syntax

void PDSignDocSetDigestCategory(PDSignDocSignParams params, DigestCategory digestCat);

Parameters

params
IN Object to be modified.
digestCat
IN Cryptographic hash function to use for generating message digests.

PDSignDocSetDocMajorVersionNumber

Header: DLExtrasProcs.h:1794

Description

This will set the major PDF version number of the document.

Syntax

void PDSignDocSetDocMajorVersionNumber(PDSignDocSaveParams params, PDDocVersion major);

Parameters

params
IN Object to be modified.
major
IN The major PDF version number of the document. If major equals 0, both major and minor are ignored. Make sure that the document conforms to the version number that is specified.

PDSignDocSetDocMinorVersionNumber

Header: DLExtrasProcs.h:1808

Description

This will set the minor PDF version number of the document.

Syntax

void PDSignDocSetDocMinorVersionNumber(PDSignDocSaveParams params, PDDocVersion minor);

Parameters

params
IN Object to be modified.
minor
IN The minor PDF version number of the document.

PDSignDocSetFieldID

Header: DLExtrasProcs.h:1563

Description

This will set the field identifier used to determine the form field that will contain the digital signature.

Syntax

void PDSignDocSetFieldID(PDSignDocSignParams params, SignatureFieldID id);

Parameters

params
IN Object to be modified.
id
IN Identifier to determine the form field that will contain the digital signature.

PDSignDocSetFieldName

Header: DLExtrasProcs.h:1577

Description

This will set the form field fully qualified name option.

Syntax

void PDSignDocSetFieldName(PDSignDocSignParams params, ASConstText fieldName);

Parameters

params
IN Object to be modified.
fieldName
IN Fully qualified name of the form field that will contain the digital signature.

PDSignDocSetFieldObject

Header: DLExtrasProcs.h:1591

Description

This will set the form field Cos object option.

Syntax

void PDSignDocSetFieldObject(PDSignDocSignParams params, CosObj fieldObj);

Parameters

params
IN Object to be modified.
fieldObj
IN Cos object identifying the field dictionary that will contain the digital signature.

PDSignDocSetFileSys

Header: DLExtrasProcs.h:1766

Description

This will set the file system of the document to be saved.

Syntax

void PDSignDocSetFileSys(PDSignDocSaveParams params, ASFileSys outputFileSys);

Parameters

params
IN Object to be modified.
outputFileSys
IN The file system. If NULL, the file system of the document's current backing file is used.

PDSignDocSetNonPfxPassphrase

Header: DLExtrasProcs.h:1689

Description

This will set the passphrase used to decrypt NonPFX credentials. Note: The passphrase provided must use the exact same character encoding used to encrypt the private key. The application makes no effort whatsoever to re-encode the same.

Syntax

void PDSignDocSetNonPfxPassphrase(PDSignDocSignParams params, void *passphrase, ASSize_t passphraseSize, CredentialStorageFmt storageFmt);

Parameters

params
IN Object to be modified.
passphrase
IN Passphrase used to encrypt NonPFX private key. Should be set to NULL if unencrypted.
passphraseSize
IN Passphrase size in bytes. Shall be set to 0 if private key is unencrypted or passphrase is stored on disk.
storageFmt
IN Storage format for passphrase.

PDSignDocSetNonPfxPrivateKey

Header: DLExtrasProcs.h:1676

Description

This will set the private key for NonPFX credentials.

Syntax

void PDSignDocSetNonPfxPrivateKey(PDSignDocSignParams params, void *privateKey, ASSize_t keySize, CredentialStorageFmt storageFmt);

Parameters

params
IN Object to be modified.
privateKey
IN Private key.
keySize
IN Size of private key in bytes. Shall be set to 0 if key is stored on disk.
storageFmt
IN Storage format for private key.

PDSignDocSetNonPfxSignerCert

Header: DLExtrasProcs.h:1666

Description

This will set the signer certificate for NonPFX credentials.

Syntax

void PDSignDocSetNonPfxSignerCert(PDSignDocSignParams params, void *signerCert, ASSize_t certSize, CredentialStorageFmt storageFmt);

Parameters

params
IN Object to be modified.
signerCert
IN Signer certificate.
certSize
IN Size of signer certificate in bytes. Shall be set to 0 if certificate is stored on disk.
storageFmt
IN Storage format for the signer certificate.

PDSignDocSetOutputPath

Header: DLExtrasProcs.h:1752

Description

This will set the output path to which the document is saved.

Syntax

void PDSignDocSetOutputPath(PDSignDocSaveParams params, ASPathName outputPath);

Parameters

params
IN Object to be modified.
outputPath
IN The path to which the signed document is saved.

PDSignDocSetPfxCredentials

Header: DLExtrasProcs.h:1697

Description

This will set PFX/PKCS#12 credentials.

Syntax

void PDSignDocSetPfxCredentials(PDSignDocSignParams params, void *credentials);

Parameters

params
IN Object to be modified.
credentials
IN Credentials in PFX/PKCS#12 file format.

PDSignDocSetPfxPassphrase

Header: DLExtrasProcs.h:1709

Description

This will set the passphrase used to decrypt PFX/PKCS#12 credentials. Note: The passphrase provided must use the exact same character encoding used to encrypt the PFX credentials. The application makes no effort whatsoever to re-encode the same.

Syntax

void PDSignDocSetPfxPassphrase(PDSignDocSignParams params, void *passphrase, ASSize_t passphraseSize, CredentialStorageFmt storageFmt);

Parameters

params
IN Object to be modified.
passphrase
IN Passphrase used to encrypt PFX/PKCS#12 credentials. Shall be set to NULL if credentials are unencrypted.
passphraseSize
IN Passphrase size in bytes. Shall be set to 0 if PFX credentials are unencrypted or passphrase is stored on disk.
storageFmt
IN Storage format for PFX/PKCS#12 credentials.

PDSignDocSetProgressMon

Header: DLExtrasProcs.h:1774

Description

This will set the progress monitor and client data for the monitor.

Syntax

void PDSignDocSetProgressMon(PDSignDocSaveParams params, ASProgressMonitor progMon, void *progMonClientData);

Parameters

params
IN Object to be modified.
progMon
IN Progress monitor. Use AVAppGetDocProgressMonitor() to obtain the default. It may be NULL.
progMonClientData
IN A pointer to user-supplied data to pass to mon each time it is called. It must be NULL if mon is NULL.

PDSignDocSetSignatureBoxPageNumber

Header: DLExtrasProcs.h:1606

Description

This will set the page number on which the widget annotation of the signature field is created.

Syntax

void PDSignDocSetSignatureBoxPageNumber(PDSignDocSignParams params, ASUns32 pageNumber);

Parameters

params
IN Object to be modified.
pageNumber
IN Page number on which to create the widget annotation.

PDSignDocSetSignatureBoxRectangle

Header: DLExtrasProcs.h:1621

Description

This will set the dimension of the annotation rectangle of the signature field being created.

Syntax

void PDSignDocSetSignatureBoxRectangle(PDSignDocSignParams params, ASFixedRectP boxRect);

Parameters

params
IN Object to be modified.
boxRect
IN Dimension of the annotation rectangle of the signature field.

PDSignDocSetSignerInfo

Header: DLExtrasProcs.h:1723

Description

This will set the Signer Info.

Syntax

void PDSignDocSetSignerInfo(PDSignDocSignParams params, PDEImage logo, ASFixed opacity, ASConstText name, ASConstText location, ASConstText reason, ASConstText contactInfo, ASInt32 displayTraits);

Parameters

params
IN Object to be modified.
logo
IN Image to display as part of signature appearance.
opacity
IN Opacity of image to display as part of signature appearance.
name
IN Name of the person or authority signing the document.
location
IN CPU host name or physical location of the signing.
reason
IN Reason for signing the document.
contactInfo
IN Information provided by the signer to enable recipients to contact signer for signature verification.
displayTraits
IN DisplayTraits fields to display as part of signature appearance.

PDSignDocSignInitParams

Header: DLExtrasProcs.h:1549

Description

This will create a set of document signature parameters.

When these parameters are no longer needed (after the call to PDSignDocWithParams, although they can be re-used any number of times), they should be freed by the method PDSignDocSignReleaseParams.

Syntax

PDSignDocSignParams PDSignDocSignInitParams(void);

Returns

initialized document signature parameters that can be further modified.

PDSignDocSignReleaseParams

Header: DLExtrasProcs.h:1556

Description

This will completely free the resources used by a PDSignDocSignParams structure.

Syntax

void PDSignDocSignReleaseParams(PDSignDocSignParams params);

Parameters

params
IN Object to deallocate.

PDSignDocWithParams

Header: DLExtrasProcs.h:1538

Description

Adds a digital signature using the specified credentials. If the document has not been previously signed, signs and saves the entire document. If the document has been previously signed, signs and saves only the portions of the document that have changed. If the document has been previously signed and the path to which the file is saved is NULL or the same as the path specified by the parameter, doc, signs and copies the document, saving only the portions of the document that have changed.

Syntax

void PDSignDocWithParams(PDDoc doc, PDSignDocSaveParams saveParams, PDSignDocSignParams signParams);

Parameters

doc
IN/OUT The PDF document object.
saveParams
IN A PDSignDocSaveParams structure specifying how the document should be saved.
signParams
IN A PDSignDocSignParams structure specifying how the document should be signed.