Interface IClient
Describes a client object that communicates with a pdf service. The tasks returned by async methods result in
null
, false
or -1
in case of error,
depending on the result type.
Inherited Members
Namespace: Sig.PdfClient
Assembly: SigPdfClient.dll
Syntax
public interface IClient : IDisposable
Remarks
A client object can hold and work with one document only at a given point in time. It can handle multiple documents sequentially, though. If you would like to work on multiple documents in parallel use multiple client objects.
Methods
Name | Description |
---|---|
AddSignatureField(String, FieldPosition) | Adds a signature field to the AcroForm. |
AddSignatureFieldAsync(String, FieldPosition) | Adds a signature field to the AcroForm. |
DownloadPdfAsync() | Downloads the current document. |
DrawImageAsync(FieldPosition, Bitmap) | Draws the image. |
FindText(String) | Searches the document for this string and retrieves the positions of its occurences. |
FindTextAsync(String) | Searches the document for this string and retrieves the positions of its occurences. |
GetAcroForm() | Retrieves an AcroForm object for the current document. |
GetAcroFormAsync() | Retrieves an AcroForm object for the current document. |
GetNumberOfPages() | Counts the number of pages in the current document. |
GetNumberOfPagesAsync() | Counts the number of pages in the current document. |
GetPagesAsync() | Retrieves the page dimensions (height, width) These are important for the positioning of new signature fields. |
LoadPdfAsync(Byte[]) | Loads a new document. This discards the previous document. |
LoadPdfAsync(Stream) | Loads a new document. This discards the previous document. |
RenderPageAsync(Int32, Int32) | Renders a page with the desired resolution. |
TerminateService() | Terminates a connected service. Intended for testing and debugging. |
TerminateServiceAsync() | Terminates a connected service. Intended for testing and debugging. |