THPDFPDFMACStatus Type

Reports the outcome of validating an AuthCode PDF MAC over 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 does not contain an active AuthCode
pmsInvalidPasswordThe document encryption password needed to derive the MAC key is wrong
pmsMalformedThe AuthCode structure, trailer, ByteRange array, salts, or hexadecimal MAC value cannot be parsed
pmsUnsupportedAlgorithmThe MAC digest algorithm or the location variant is not supported
pmsCoverageInvalidThe ByteRange does not cover the required file extent
pmsDocumentModifiedThe data digest no longer matches, so bytes inside the MAC coverage were changed
pmsAuthenticationFailedThe authentication tag or key integrity check failed, meaning the MAC value or key material is wrong
pmsPolicyRejectedThe configured policy profile rejected the MAC parameters before any cryptographic work
pmsSignatureBindingFailedThe digest that binds an attached MAC to its signature no longer matches

Usage notes

Related APIs