## AddPrinterMarks(Document, PrinterMarksKind) {#addprintermarks}

Adds printer's marks to all pages in the specified document.

```csharp
public static void AddPrinterMarks(Document document, PrinterMarksKind marksKind)
```

| Parameter | Type | Description |
| --- | --- | --- |
| document | Document | The document to which the printer's marks will be added. |
| marksKind | PrinterMarksKind | The kind of printer's marks to add. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when the *document* is null. |

## Remarks

This method adds various types of printer's marks based on the provided [`PrinterMarksKind`](../../printermarkskind/) flags. If None is provided, no marks are added.

### See Also

* class [Document](../../../aspose.pdf/document/)
* enum [PrinterMarksKind](../../printermarkskind/)
* class [PrinterMarkAnnotation](../)
* namespace [Aspose.Pdf.Annotations](../../../aspose.pdf.annotations/)
* assembly [Aspose.PDF](../../../)

---

## AddPrinterMarks(Page, PrinterMarksKind) {#addprintermarks_1}

Adds printer's marks to the specified page.

```csharp
public static void AddPrinterMarks(Page page, PrinterMarksKind marksKind)
```

| Parameter | Type | Description |
| --- | --- | --- |
| page | Page | The page to which the printer's marks will be added. |
| marksKind | PrinterMarksKind | The kind of printer's marks to add. |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | Thrown when the *page* is null. |

## Remarks

This method adds various types of printer's marks based on the provided [`PrinterMarksKind`](../../printermarkskind/) flags. If None is provided, no marks are added.

### See Also

* class [Page](../../../aspose.pdf/page/)
* enum [PrinterMarksKind](../../printermarkskind/)
* class [PrinterMarkAnnotation](../)
* namespace [Aspose.Pdf.Annotations](../../../aspose.pdf.annotations/)
* assembly [Aspose.PDF](../../../)


