Back to Devexpress

PdfDeferredSigner.Sign(String, Byte[]) Method

officefileapi-devexpress-dot-pdf-dot-pdfdeferredsigner-dot-sign-x28-system-dot-string-system-dot-byte-x29.md

latest1.9 KB
Original Source

PdfDeferredSigner.Sign(String, Byte[]) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Writes the signature contents and saves the signed document to the specified file.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public void Sign(
    string filePath,
    byte[] signatureValue
)
vb
Public Sub Sign(
    filePath As String,
    signatureValue As Byte()
)

Parameters

NameTypeDescription
filePathString

The path to the file to which to save the document.

| | signatureValue | Byte[] |

A DER-encoded PKCS#7 object, a DER-encoded CMS SignedData object or a TimeStampToken object (RFC 3161).

|

Remarks

Use the ITsaClient.GenerateTimeStamp(Byte[], String) or IExternalSigner.BuildSignature(Byte[], String) method to obtain the signature contents.

See Also

PdfDeferredSigner Class

PdfDeferredSigner Members

DevExpress.Pdf Namespace