PdfSecurityManagerSign(Byte, IExternalSigner, String, String, String, String, Int32, RectangleF, TimeStampAuthority) Method |
Signs the PDF document given as an array of bytes with an external signer.
Namespace: ExpertPdf.Anywhere.PDFSecurityAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic byte[] Sign(
byte[] sourcePdf,
IExternalSigner signer,
string signatureName,
string reason,
string location,
string contactInfo,
int pageIndex,
RectangleF bounds,
TimeStampAuthority timeStampAuthority
)
Public Function Sign (
sourcePdf As Byte(),
signer As IExternalSigner,
signatureName As String,
reason As String,
location As String,
contactInfo As String,
pageIndex As Integer,
bounds As RectangleF,
timeStampAuthority As TimeStampAuthority
) As Byte()
Parameters
- sourcePdf Byte
- The PDF document that will be signed.
- signer IExternalSigner
- The signer that produces the signature value with its private key.
- signatureName String
- The name of the signature.
- reason String
- The reason of signing.
- location String
- The location of signing.
- contactInfo String
- The signer contact info.
- pageIndex Int32
- Index of the page where the signature will be added.
- bounds RectangleF
- Location within the specified page of the signature.
- timeStampAuthority TimeStampAuthority
- TSA server details. Can be null.
Return Value
ByteThe signed PDF document.
See Also