Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 446

Previous Page 445   Index   Next Page 447

Function Reference
Page 446 of 750
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.
// This should be adbe.x509.rsa_sha1, adbe.pkcs7.detached, or
// adbe.pkcs7.sha1.
SI32
Version;
// The version of the signature dictionary format.
};
The function returns the properties of a signature dictionary. This dictionary is only present if an
imported PDF file was digitally signed. Note that the byte ranges refer to the original file that
contained the signature. With the information of this dictionary it is possible to validate the signature
with a cryptographic library like the Windows Crypt API, OpenSSL or similar libraries.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
GetSpaceWidth
Syntax:
double fntGetSpaceWidth(
const PPDF* IFont, // Pointer to internal font object
double FontSize)
// Font size to compute the space width
The function returns the width of the space character of the font depending on the font size. If the
font contains no space character a default size is used to compute the space width.
The parameter IFont must be a valid pointer to a PDF font. Such a pointer is returned by
GetPageText(), EnumDocFonts(), or by the content parser (see ParseContent()).
Return values:
If the function succeeds the return value is the space width. If the function fails the return value is
zero. This function does not use the exception handling of DynaPDF. No error message is set on
failure.
GetStrokeColor
Syntax:
UI32 pdfGetStrokeColor(
const PPDF* IPDF) // Instance pointer
The function returns the current stroke color. The returned color value is not converted to the active
color space. For example, if the color space will be changed with SetColorSpace(), the color value is
still the same. Colors must be correctly defined in the current color space.
Default value = 0 (Black)
 

Previous topic: GetSigDict

Next topic: GetSysFontInfo