PAdES B-B and B-T signing is part of every edition; the B-LT and B-LTA levels require the Enterprise edition (link FPdfEnterprise with Lib\Enterprise on the search path), otherwise they raise EPdfEnterpriseRequired before any output is written; see the edition matrix
function SignPadesWithPdfA(const FileName: string; const Options: TPadesSignOptions; PdfAOptions: TPdfASaveOptions): Boolean;
Performs a combined PDF/A conformance conversion and PAdES digital signing, outputting a long-term archive compliant document in a single workflow
| FileName | Destination path for the signed PDF/A file |
| Options | PAdES signature configuration record |
| PdfAOptions | PDF/A target conformance level and options record |
Active to be True
var
SignOpts: TPadesSignOptions;
PdfAOpts: TPdfASaveOptions;
begin
if not Pdf1.Active then Exit;
SignOpts := TPadesSignOptions.Default;
SignOpts.CertificateThumbprint := 'a1b2c3d4';
PdfAOpts.Conformance := pacPdfA1b;
Pdf1.SignPadesWithPdfA('archived-signed.pdf', SignOpts, PdfAOpts);
end;