DynaPDF Manual - Page 515

Previous Page 514   Index   Next Page 516

Function Reference
Page 515 of 860
GetSeparationInfo
Syntax:
LBOOL pdfGetSeparationInfo(
const PPDF* IPDF,
// Instance pointer
char* ADDR Colorant,
// Colorant name
TExtColorSpace ADDR CS) // Separation, DeviceN, or NChannel
The function returns the separation info stored in the current open page. The colorant name is
returned UTF-8 Unicode format.
Return values:
If the function succeeds the return value is 1. If the function fails or if the page contains no
separation info the return value is 0.
GetSigDict
Syntax:
LBOOL pdfGetSigDict(
const PPDF* ISignature,
// Pointer of a signature dictionary
struct TPDFSigDict* SigDict) // see below
struct TPDFSigDict
{
UI32
StructSize;
// Must be set to sizeof(TPDFSigDict).
const UI32*
ByteRange;
// ByteRange -> Byte offset followed by the corresponding length.
// The byte ranges are required to create the digest. The values
// are returned as is. Check whether the offsets and length
// values are valid. There are normally at least two ranges.
// Overlapping ranges are not allowed! Any error breaks
// processing and the signature should be considered as invalid.
UI32
ByteRangeCount; // The number of Offset / Length pairs.
const BYTE*
Cert;
// X.509 Certificate when SubFilter is adbe.x509.rsa_sha1.
UI32
CertLen;
// Length in bytes
const UI32*
Changes;
// If set, an array of three integers that specify changes to the
// document that have been made between the previous signature
// and this signature in this order: the number of pages altered,
// the number of fields altered, and the number of fields filled
// in.
const char*
ContactInfoA;
// Optional contact info string
const UI16*
ContactInfoW;
// Optional contact info string
const BYTE*
Contents;
// The signature. This is either a DER encoded PKCS#1 binary data
// object or a DER-encoded PKCS#7 binary data object depending on
// the used SubFilter.
UI32
ContentsSize;
// Length in bytes.
const char*
Filter;
// The name of the security handler, usually Adobe.PPKLite.
const char*
LocationA;
// Optional location of the signer
const UI16*
LocationW;
// Optional location of the signer
const char*
SignTime;
// Date/Time string
const char*
NameA;
// Optional signers name
const UI16*
NameW;
// Optional signers name
UI32
PropAuthTime;
// The number of seconds since the signer was last authenticated.
const char*
PropAuthType;
// Optional -> The method that shall be used to authenticate the
// signer. Valid values are PIN, Password, and Fingerprint.
const char*
ReasonA;
// Optional reason
const UI16*
ReasonW;
// Optional reason
SI32
Revision;
// The version of the signature handler that was used to create
// the signature.
const char*
SubFilter;
// A name that describes the encoding of the signature value.
 

Previous topic: GetResetAction, GetResolution, GetSaveNewImageFormat

Next topic: GetSpaceWidth