DynaPDF Manual - Page 435
Previous Page 434 Index Next Page 436
Function Reference
Page 435 of 839
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 AcorForm 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.
GetInIsTaggedPDF
Syntax:
SI32 pdfGetInIsTaggedPDF(
const PPDF* IPDF) // Instance pointer
typedef enum TPDFMarkInfo
{
miNotTagged
= 0, // This is no Tagged PDF file.
miTagged
= 1, // This is a Tagged PDF file.
miSuspects
= 2, // The file contains suspect contents that whose ordering does not ordered
// meet the requirements of the Tagged PDF specifications.
miUserProperties = 4
// A flag indicating that at least one structure element contains user
// properties. User properties are stored in User Property dictionaries.
}TPDFMarkInfo;
The function can be used to check whether the currently open import file is a Tagged PDF file. The
PDF file must be opened beforehand with OpenImportFile() or OpenImportBuffer().
The return value is a set flags indicating the tagging status of the file, see TPDFMarkInfo above.
Return values:
If the function succeeds, the return value is greater or equal zero. If the function fails, the return
value is a negative error code.
Previous topic: GetInEncryptionFlags, GetInFieldCount, GetInIsCollection, GetInIsEncrypted
Next topic: GetInIsTrapped, GetInIsXFAForm, GetInkList