Class PdfStreamSigner
Applies a digital signature to an existing PDF using incremental update, avoiding a full file rewrite.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Streaming
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class PdfStreamSigner
Constructors
PdfStreamSigner(Stream)
Creates a signer that writes the signed PDF to the specified outputStream.
Declaration
public PdfStreamSigner(Stream outputStream)
Parameters
|
System.IO.Stream
outputStream
The output stream where the signed document will be written. |
Methods
SignDocument(Stream, SignatureField, Int32, Nullable<TimeSpan>)
Signs the PDF from originalStream, places signatureField on pageIndex, and writes the signed result to the configured output stream.
Declaration
public void SignDocument(Stream originalStream, SignatureField signatureField, int pageIndex, TimeSpan? timeout)
Parameters
|
System.IO.Stream
originalStream
The original PDF document stream. |
|
SignatureField
signatureField
The signature field to be added to the document. |
|
System.Int32
pageIndex
The index of the page where the signature will be added. |
|
System.Nullable<System.TimeSpan>
timeout
The timeout for the operation. |
Exceptions
|
System.InvalidOperationException
Thrown when the signature field contains no widgets or more than one widget, as it must contain exactly one widget for proper signing. |
|
System.ArgumentOutOfRangeException
Thrown when the page index is out of range. |