DynaPDF Manual - Page 496

Previous Page 495   Index   Next Page 497

Function Reference
Page 496 of 839
// 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.
 

Previous topic: GetSeparationInfo, GetSigDict

Next topic: GetStrokeColor, GetSubmitAction, GetSysFontInfo