GetPAdESSignatureCMSBytes
Security and Signatures
Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns an empty string and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)
Description
Returns the selected signature's /Contents trimmed to canonical CMS DER after GetPAdESSignatureValueHashHex has prepared the process
Most callers should pass the TSA token directly to SetPAdESSignatureTimeStampToken
This accessor remains available for advanced workflows that intentionally perform a more general CMS rewrite
Syntax
Delphi
Function TPDFlib.GetPAdESSignatureCMSBytes(
STSProcessID: Integer): AnsiString; Virtual;DLL
const char* DLGetPAdESSignatureCMSBytes(int InstanceID, int STSProcessID, int* ByteCount);ActiveX
Function PDFlib::GetPAdESSignatureCMSBytes(STSProcessID As Long) As Variant
Parameters
| STSProcessID | Signature timestamp process handle returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions |
|---|
Return values
Canonical CMS DER bytes, or an empty string before preparation, for an invalid process, or after a load failure