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

# IPdfHandler

**Namespace:** `Lacuna.Pki.Pades`  
**Assembly:** `Lacuna.Pki`  
_Interface_

```csharp
[Obsolete("There is no need for setting an external Pdf Handler")]
public interface IPdfHandler
```

## Propriedades

### `CanHandleDss`

```csharp
bool CanHandleDss { get; }
```

**Retorno**

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

---

### `CanHandleVisualRepresentation`

```csharp
bool CanHandleVisualRepresentation { get; }
```

**Retorno**

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

---

## Métodos

### `AddTimestamp(ITimestampRequester)`

```csharp
void AddTimestamp(ITimestampRequester tsRequester)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `tsRequester` | [`ITimestampRequester`](https://docs.lacunasoftware.com/api/Lacuna.Pki/ITimestampRequester) |  |

---

### `AddToDss(IEnumerable<DssEntry>)`

```csharp
void AddToDss(IEnumerable<DssEntry> entries)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `entries` | [`IEnumerable<DssEntry>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) |  |

---

### `CreateSignatureDictionary(PadesFilters)`

```csharp
void CreateSignatureDictionary(PadesFilters filter)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `filter` | [`PadesFilters`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Pades/PadesFilters) |  |

---

### `Finalize(byte[])`

```csharp
void Finalize(byte[] cms)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `cms` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

---

### `GenarateRangeBytes(int)`

```csharp
Stream GenarateRangeBytes(int estimatedCmsLength)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `estimatedCmsLength` | [`int`](https://learn.microsoft.com/dotnet/api/system.int32) |  |

**Retorno**

[`Stream`](https://learn.microsoft.com/dotnet/api/system.io.stream)

---

### `GetBlankSignaturesNames()`

```csharp
ICollection<string> GetBlankSignaturesNames()
```

**Retorno**

[`ICollection<string>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)

---

### `GetCertificateStoreFromDss()`

```csharp
ICertificateStore GetCertificateStoreFromDss()
```

**Retorno**

[`ICertificateStore`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Stores/ICertificateStore)

---

### `GetDss(string)`

```csharp
Dss GetDss(string signatureFieldName = null)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `signatureFieldName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

[`Dss`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Pades/Dss)

---

### `GetRangeBytes(string)`

```csharp
byte[] GetRangeBytes(string signatureFieldName)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `signatureFieldName` | [`string`](https://learn.microsoft.com/dotnet/api/system.string) |  |

**Retorno**

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

---

### `GetSignatureFieldName()`

```csharp
string GetSignatureFieldName()
```

**Retorno**

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

---

### `GetSignedPdf()`

```csharp
byte[] GetSignedPdf()
```

**Retorno**

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

---

### `GetSigners()`

```csharp
ICollection<PadesSignerInfo> GetSigners()
```

**Retorno**

[`ICollection<PadesSignerInfo>`](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1)

---

### `SetCertificationLevel(PadesCertificationLevel)`

```csharp
void SetCertificationLevel(PadesCertificationLevel level)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `level` | [`PadesCertificationLevel`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Pades/PadesCertificationLevel) |  |

---

### `SetPdf(byte[])`

```csharp
void SetPdf(byte[] pdf)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdf` | [`byte[]`](https://learn.microsoft.com/dotnet/api/system.byte) |  |

---

### `SetSigningDateM(DateTimeOffset)`

```csharp
void SetSigningDateM(DateTimeOffset signingDate)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `signingDate` | [`DateTimeOffset`](https://learn.microsoft.com/dotnet/api/system.datetimeoffset) |  |

---

### `SetVisualRepresentation(PadesVisualRepresentation, DateTimeOffset?)`

```csharp
void SetVisualRepresentation(PadesVisualRepresentation visual, DateTimeOffset? signingTime)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `visual` | [`PadesVisualRepresentation`](https://docs.lacunasoftware.com/api/Lacuna.Pki.Pades/PadesVisualRepresentation) |  |
| `signingTime` | [`DateTimeOffset?`](https://learn.microsoft.com/dotnet/api/system.datetimeoffset) |  |

---
