function SaveAsPadesDssToStream(Stream: TStream; const Options: TPadesDssOptions): Boolean;
Saves the current document bytes into a custom stream while injecting X.509 validation materials (certificates, CRLs, and OCSP responses) into the document's global /DSS dictionary
TPadesDssOptions.Vris writes signature-specific indirect VRI dictionaries whose certificate, OCSP, and CRL arrays reference deduplicated global material streams
| Stream | Destination stream to write the output bytes into |
| Options | Complete DSS configuration containing validation material and signature-specific VRI entries |
Active to be True/Contents value including paddingEPadesCrypto without changing the destination stream
var
MemStream: TMemoryStream;
DssOpts: TPadesDssOptions;
begin
if not Pdf1.Active then Exit;
MemStream := TMemoryStream.Create;
try
DssOpts := TPadesDssOptions.Default;
Pdf1.SaveAsPadesDssToStream(MemStream, DssOpts);
finally
MemStream.Free;
end;
end;