THPDFPDFMACStatus Type

Reports the outcome of validating an AuthCode PDF MAC against the document contents

Declaration

THPDFPDFMACStatus= (pmsValid, pmsNotPresent, pmsInvalidPassword,
  pmsMalformed, pmsUnsupportedAlgorithm, pmsCoverageInvalid,
  pmsDocumentModified, pmsAuthenticationFailed, pmsPolicyRejected,
  pmsSignatureBindingFailed);

Unit

HPDFDoc

Values

ValuePurpose
pmsValidThe MAC was located, decrypted and authenticated, and its coverage checks passed
pmsNotPresentThe PDF carries no active AuthCode
pmsInvalidPasswordThe document encryption password needed to derive the MAC key is incorrect
pmsMalformedThe AuthCode structure, trailer, ByteRange array, salts or hexadecimal MAC value cannot be parsed
pmsUnsupportedAlgorithmThe MAC digest algorithm or the location variant is unsupported
pmsCoverageInvalidThe ByteRange fails to cover the required file extent
pmsDocumentModifiedThe data digest no longer matches, so bytes inside the MAC coverage have been changed
pmsAuthenticationFailedThe authentication tag or key integrity check failed, meaning the MAC value or the key material is wrong
pmsPolicyRejectedThe configured policy profile rejected the MAC parameters before any cryptographic work was done
pmsSignatureBindingFailedThe digest tying an attached MAC to its signature no longer matches

Usage notes

Related APIs