---
title: "PadesSignatureStarter"
description: "Namespace: Lacuna.RestPki.Client"
canonical: "https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PadesSignatureStarter"
locale: "pt-BR"
product: "PKI SDK"
last_updated: "2026-06-02"
---

# PadesSignatureStarter

**Namespace:** `Lacuna.RestPki.Client`  
**Assembly:** `Lacuna.RestPki.Client`  
_Class_

Utility class to facilitate the startup of a PADeS signature process with Rest PKI

```csharp
public class PadesSignatureStarter : SignatureStarter
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → [`SignatureStarter`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter) → `PadesSignatureStarter`

## Construtores

### `PadesSignatureStarter(RestPkiClient)`

```csharp
public PadesSignatureStarter(RestPkiClient client)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `client` | [`RestPkiClient`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/RestPkiClient) |  |

---

## Propriedades

### `BypassMarksIfSigned`

```csharp
public bool BypassMarksIfSigned { get; set; }
```

**Retorno**

[`bool`](https://learn.microsoft.com/dotnet/api/system.boolean)

---

### `CertificationLevel`

```csharp
public PadesCertificationLevel CertificationLevel { get; set; }
```

**Retorno**

`PadesCertificationLevel`

---

### `CustomSignatureFieldName`

```csharp
public string CustomSignatureFieldName { get; set; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

### `MeasurementUnits`

```csharp
public PadesMeasurementUnits MeasurementUnits { get; set; }
```

**Retorno**

`PadesMeasurementUnits`

---

### `PageOptimization`

```csharp
public PadesPageOptimization PageOptimization { get; set; }
```

**Retorno**

[`PadesPageOptimization`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PadesPageOptimization)

---

### `PdfMarks`

```csharp
public List<PdfMark> PdfMarks { get; set; }
```

**Retorno**

[`List<PdfMark>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)

---

### `Reason`

```csharp
public string Reason { get; set; }
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string)

---

### `VisualRepresentation`

```csharp
public PadesVisualRepresentation VisualRepresentation { get; set; }
```

**Retorno**

[`PadesVisualRepresentation`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PadesVisualRepresentation)

---

## Métodos

### `SetPdfToSign(byte[])`

Sets the content to sign via a byte array

```csharp
public void SetPdfToSign(byte[] content)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `content` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) | The byte array representing the content to be signed |

---

### `SetPdfToSign(FileResult)`

Sets the PDf to sign from a file result from a previous call to Rest PKI

```csharp
public void SetPdfToSign(FileResult pdf)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdf` | [`FileResult`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/FileResult) |  |

---

### `SetPdfToSign(Stream)`

Sets the content to sign via a stream object

```csharp
public void SetPdfToSign(Stream pdfStream)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfStream` | [`Stream`](https://learn.microsoft.com/dotnet/api/system.io.stream) | The stream representing thye content to be signed |

---

### `SetPdfToSign(string)`

Sets the content to sign via a file path string

```csharp
public void SetPdfToSign(string path)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `path` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) | The path where the file will be found |

**Exceções**

| Tipo | Condição |
|---|---|
| [`FileNotFoundException`](https://learn.microsoft.com/dotnet/api/system.io.filenotfoundexception) | In case a file cannot be found with the given path string |

---

### `SetVisualRepresentation(PadesVisualRepresentation)`

Indicates that the signature created with this starter will have a visual representation indicated by

```csharp
visualRepresentation
```

```csharp
public void SetVisualRepresentation(PadesVisualRepresentation visualRepresentation)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `visualRepresentation` | [`PadesVisualRepresentation`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PadesVisualRepresentation) | The visual representation that should be added to the result pdf |

---

### `Start()`

Starts the signature without the web pki support

```csharp
public override ClientSideSignatureInstructions Start()
```

**Retorno**

[`ClientSideSignatureInstructions`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/ClientSideSignatureInstructions) — The instructions to proceed with the signature

---

### `StartAsync()`

Starts the signature without the web pki support

```csharp
public override Task<ClientSideSignatureInstructions> StartAsync()
```

**Retorno**

[`Task<ClientSideSignatureInstructions>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1) — The instructions to proceed with the signature

---

### `StartWithWebPki()`

Starts the signature leveraging the presence of the web pki

```csharp
public override string StartWithWebPki()
```

**Retorno**

[`string`](https://learn.microsoft.com/dotnet/api/system.string) — The signature token

---

### `StartWithWebPkiAsync()`

Starts the signature leveraging the presence of the web pki

```csharp
public override Task<string> StartWithWebPkiAsync()
```

**Retorno**

[`Task<string>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1) — The signature token

---

## Membros herdados

[`Client`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#client), [`Done`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#done), [`CertificateInfo`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#certificateinfo), [`SetSignerCertificate(byte[])`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#setsignercertificate-system-byte), [`SetSignaturePolicy(Guid)`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#setsignaturepolicy-system-guid), [`SetSecurityContext(Guid)`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#setsecuritycontext-system-guid), [`SetCallbackArgument(string)`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#setcallbackargument-system-string), [`GetCertificateInfo()`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#getcertificateinfo), [`SignerCertificate`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#signercertificate), [`SignaturePolicyId`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#signaturepolicyid), [`SecurityContextId`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#securitycontextid), [`CallbackArgument`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#callbackargument), [`IgnoreRevocationStatusUnknown`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/SignatureStarter#ignorerevocationstatusunknown), [`GetType()`](https://learn.microsoft.com/dotnet/api/system.object.gettype), [`MemberwiseClone()`](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [`ToString()`](https://learn.microsoft.com/dotnet/api/system.object.tostring), [`Equals(object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)>), [`Equals(object, object)`](<https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)>), [`ReferenceEquals(object, object)`](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [`GetHashCode()`](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)
