Class PdfLoadedSignatureFieldExtension
Represents the extension class for loaded signature field.
Inheritance
System.Object
PdfLoadedSignatureFieldExtension
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Imaging.NET.dll
Syntax
public static class PdfLoadedSignatureFieldExtension : Object
Examples
//Load the existing PDF file.
FileStream fileStream = new FileStream("input.pdf", FileMode.Open);
PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
//Get the existing signed signature field.
PdfLoadedSignatureField loadedSignature = ldoc.Forms.Fields[0] as PdfLoadedSignatureField;
//Get the image streams.
Stream[] imageStreams = loadedSignature.GetImages();
//Close the PDF document.
ldoc.Close(true);
Methods
GetImages(PdfLoadedSignatureField)
Returns an array of Stream objects that represent the images associated with the signature field.
Declaration
public static Stream[] GetImages(this PdfLoadedSignatureField signatureField)
Parameters
Type | Name | Description |
---|---|---|
PdfLoadedSignatureField | signatureField | Signature field to get custom images. |
Returns
Type | Description |
---|---|
System.IO.Stream[] | An array of Stream objects that represent the images associated with the signature field. |
Examples
//Load the existing PDF file.
FileStream fileStream = new FileStream("input.pdf", FileMode.Open);
PdfLoadedDocument ldoc = new PdfLoadedDocument(fileStream);
//Get the existing signed signature field.
PdfLoadedSignatureField loadedSignature = ldoc.Forms.Fields[0] as PdfLoadedSignatureField;
//Get the image streams.
Stream[] imageStreams = loadedSignature.GetImages();
//Close the PDF document.
ldoc.Close(true);