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

# PdfMarker

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

```csharp
public class PdfMarker
```

**Hierarquia:** [`object`](https://learn.microsoft.com/dotnet/api/system.object) → `PdfMarker`

## Construtores

### `PdfMarker(RestPkiClient)`

```csharp
public PdfMarker(RestPkiClient client)
```

**Parâmetros**

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

---

## Propriedades

### `AbortIfSigned`

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

**Retorno**

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

---

### `ForceBlobResult`

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

**Retorno**

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

---

### `Marks`

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

**Retorno**

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

---

### `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)

---

### `PreserveSignaturesVisualRepresentation`

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

**Retorno**

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

---

## Métodos

### `Apply()`

```csharp
public FileResult Apply()
```

**Retorno**

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

---

### `ApplyAsync()`

```csharp
public Task<FileResult> ApplyAsync()
```

**Retorno**

[`Task<FileResult>`](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)

---

### `SetFile(BlobReference)`

Sets the PDf from a file previously uploaded with one of the RestPkiClient.UploadFile methods

```csharp
public void SetFile(BlobReference fileBlob)
```

**Parâmetros**

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

---

### `SetFile(byte[])`

Sets the PDF via a byte array

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

**Parâmetros**

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

---

### `SetFile(FileResult)`

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

```csharp
public void SetFile(FileResult fileResult)
```

**Parâmetros**

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

---

### `SetFile(Stream)`

Sets the PDF via a stream object

```csharp
public void SetFile(Stream stream)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `stream` | [`Stream`](https://learn.microsoft.com/dotnet/api/system.io.stream) | The stream representing the PDF |

---

### `SetFile(string)`

Sets the PDF via a file path string

```csharp
public void SetFile(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 |

---

## Membros herdados

[`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)
