Can't create a signed PDF (PAdES)

OK, quick fix, in AdESObj.pas, and in procedure TAdES.RSAExtractPrivateKey:

// Sequence is:
//  modulus, public exponent, private exponent, prime1, prime2
//  exponent1, exponent2, coefficient
RSA.inputFormat     := raw; // <=================== ADD THIS
RSA.outputFormat    := hexa;
RSA.modulus         := ASN.RSAKeySet.modulus;

Note that if the certificate is not in the Windows Store, Acrobat will not validate the signature.