DynaPDF Manual - Page 453
Previous Page 452 Index Next Page 454
Function Reference
Page 453 of 860
GetInIsCollection
Syntax:
SI32 pdfGetInIsCollection(
const PPDF* IPDF) // Instance pointer
The function checks whether the currently opened import file is a portable collection. See
CreateCollection() for further information.
Return values:
If the function succeeds the return value is either 0 or 1 depending on whether the opened PDF file
is a portable collection. If the function fails the return value is a negative error code.
GetInIsEncrypted
Syntax:
SI32 pdfGetInIsEncrypted(
const PPDF* IPDF) // Instance pointer
The function checks whether the currently opened import file is encrypted.
Return values:
If the function succeeds the return value is either 0 or 1 depending on whether the opened PDF file
is encrypted. If the function fails the return value is a negative error code.
GetInIsSigned
Syntax:
SI32 pdfGetInIsSigned(
const PPDF* IPDF) // Instance pointer
This function can be used to determine whether a PDF file contains a digital signature. The PDF file
must be opened with OpenImportFile() or OpenImportBuffer() beforehand.
The function checks only whether the signature flag is set in the global AcroForm object. Since not
all PDF libraries set the signature flag, it is not guaranteed that the file contains no signature if the
return value is false.
The only safe way to check for signatures is to import the file and search for deleted signature fields
with GetFieldEx(). If the member ISignature is set and if the member Contents of the TPDFSigDict
structure is non-NULL then the file contains a signature. See GetFieldEx() and GetSigDict() for
further information.
Return values:
If the PDF file contains a digital signature the return value is 1. If the file was not digitally signed the
function returns 0. A negative error code is returned on failure.
Previous topic: GetInFieldCount
Next topic: GetInIsTaggedPDF, GetInIsTrapped, GetInIsXFAForm