## AddDocumentAttachment(string, string) {#adddocumentattachment_1}

Adds document attachment with no annotation.

```csharp
public void AddDocumentAttachment(string fileAttachmentPath, string description)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileAttachmentPath | String | The path of the file will be attached. |
| description | String | The description information. |

## Examples

```csharp
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
editor.AddDocumentAttachment("attachment_file.pdf", "description of attachment_file");
editor.Save("example_out.pdf");
```

### See Also

* class [PdfContentEditor](../)
* namespace [Aspose.Pdf.Facades](../../../aspose.pdf.facades/)
* assembly [Aspose.PDF](../../../)

---

## AddDocumentAttachment(Stream, string, string) {#adddocumentattachment}

Adds document attachment with no annotation.

```csharp
public void AddDocumentAttachment(Stream fileAttachmentStream, string fileAttachmentName, 
    string description)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileAttachmentStream | Stream | The stream of the file will be attached. |
| fileAttachmentName | String | The attachment name. |
| description | String | The description information. |

## Examples

```csharp
PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
using(System.IO.FileStream attStream = System.IO.File.OpenRead("attachment_file.pdf"))
{
    editor.AddDocumentAttachment(attStream, "attachment_file.pdf", "description of attachment_file");
    editor.Save("example_out.pdf");
}    
```

### See Also

* class [PdfContentEditor](../)
* namespace [Aspose.Pdf.Facades](../../../aspose.pdf.facades/)
* assembly [Aspose.PDF](../../../)


