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

# PdfMarkExtensions

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

```csharp
public static class PdfMarkExtensions
```

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

## Métodos

### `AddElement(PdfMark, PdfMarkElement)`

```csharp
public static PdfMark AddElement(this PdfMark pdfMark, PdfMarkElement element)
```

**Parâmetros**

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

**Retorno**

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

---

### `OnAllPages(PdfMark)`

```csharp
public static PdfMark OnAllPages(this PdfMark pdfMark)
```

**Parâmetros**

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

**Retorno**

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

---

### `OnContainer(PdfMark, PadesVisualRectangle)`

```csharp
public static PdfMark OnContainer(this PdfMark pdfMark, PadesVisualRectangle container)
```

**Parâmetros**

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

**Retorno**

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

---

### `OnNewPage(PdfMark)`

```csharp
public static PdfMark OnNewPage(this PdfMark pdfMark)
```

**Parâmetros**

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

**Retorno**

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

---

### `OnSinglePage(PdfMark, int)`

```csharp
public static PdfMark OnSinglePage(this PdfMark pdfMark, int pageNumber)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfMark` | [`PdfMark`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMark) |  |
| `pageNumber` | [`int`](https://learn.microsoft.com/dotnet/api/system.int32) |  |

**Retorno**

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

---

### `OnSinglePageFromEnd(PdfMark, int)`

```csharp
public static PdfMark OnSinglePageFromEnd(this PdfMark pdfMark, int pageNumber)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfMark` | [`PdfMark`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMark) |  |
| `pageNumber` | [`int`](https://learn.microsoft.com/dotnet/api/system.int32) |  |

**Retorno**

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

---

### `WithBackgroundColor(PdfMark, Color)`

```csharp
public static PdfMark WithBackgroundColor(this PdfMark pdfMark, Color backgroundColor)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfMark` | [`PdfMark`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMark) |  |
| `backgroundColor` | [`Color`](https://learn.microsoft.com/dotnet/api/system.drawing.color) |  |

**Retorno**

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

---

### `WithBorderColor(PdfMark, Color)`

```csharp
public static PdfMark WithBorderColor(this PdfMark pdfMark, Color borderColor)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfMark` | [`PdfMark`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMark) |  |
| `borderColor` | [`Color`](https://learn.microsoft.com/dotnet/api/system.drawing.color) |  |

**Retorno**

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

---

### `WithBorderWidth(PdfMark, double)`

```csharp
public static PdfMark WithBorderWidth(this PdfMark pdfMark, double borderWidth)
```

**Parâmetros**

| Nome | Tipo | Descrição |
|---|---|---|
| `pdfMark` | [`PdfMark`](https://docs.lacunasoftware.com/api/Lacuna.RestPki.Client/PdfMark) |  |
| `borderWidth` | [`double`](https://learn.microsoft.com/dotnet/api/system.double) |  |

**Retorno**

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

---

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