---
title: "CosPdfDictionary.CreateEmptyDictionary"
url: "https://reference.aspose.com/pdf/net/aspose.pdf.dataeditor/cospdfdictionary/createemptydictionary/"
product: "Aspose.PDF for .NET API Reference"
description: "CosPdfDictionary method. Creates an empty dictionary that will be attached to the page"
---

## CreateEmptyDictionary(Page) {#createemptydictionary_1}

Creates an empty dictionary that will be attached to the page.

```csharp
public static CosPdfDictionary CreateEmptyDictionary(Page page)
```

| Parameter | Type | Description |
| --- | --- | --- |
| page | Page | Result dictionary will be attached to this page. |

### Return Value

An empty dictionary.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | The page is null. |

### See Also

* class [Page](../../../aspose.pdf/page/)
* class [CosPdfDictionary](../)
* namespace [Aspose.Pdf.DataEditor](../../../aspose.pdf.dataeditor/)
* assembly [Aspose.PDF](../../../)

---

## CreateEmptyDictionary(Document) {#createemptydictionary}

Creates an empty dictionary that will be attached to the document.

```csharp
public static CosPdfDictionary CreateEmptyDictionary(Document document)
```

| Parameter | Type | Description |
| --- | --- | --- |
| document | Document | Result dictionary will be attached to this document. |

### Return Value

An empty dictionary.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException | The document is null. |

### See Also

* class [Document](../../../aspose.pdf/document/)
* class [CosPdfDictionary](../)
* namespace [Aspose.Pdf.DataEditor](../../../aspose.pdf.dataeditor/)
* assembly [Aspose.PDF](../../../)


