DynaPDF.FileAttachAnnotEx
-------------------------

Inserts a file attachment annotation on the current open page.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [8.0](newinversion80.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.FileAttachAnnotEx"; PDF; PosX; PosY; Icon; Author; Description; FileName; Compress; Container ) 

**MBS**( **"DynaPDF.FileAttachAnnotEx";** /\* Inserts a file attachment annotation on the current open page. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PosX**; /\* X-Coordinate for the annotation icone.g. 100 \*/   
**$PosY**; /\* Y-Coordinate for the annotation icone.g. 100 \*/   
**$Icon**; /\* Which icon to use. Can be Graph, PaperClip, PushPin or Tag.e.g. "Graph" \*/   
**$Author**; /\* Name of author. Can be empty.e.g. "Christian Schmitz" \*/   
**$Description**; /\* Description text. Can be empty.e.g. "Original File" \*/   
**$FileName**; /\* The file name to use.e.g. "test.mp3" \*/   
**$Compress**; /\* If 1, the embedded file is compressed. Pass 0 for no compression.e.g. 0 \*/   
**$Container**) /\* The container with the file content.e.g. Test::MyFile \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| PosX | X-Coordinate for the annotation icon | 100 |
| PosY | Y-Coordinate for the annotation icon | 100 |
| Icon | Which icon to use. Can be Graph, PaperClip, PushPin or Tag. | "Graph" |
| Author | Name of author. Can be empty. | "Christian Schmitz" |
| Description | Description text. Can be empty. | "Original File" |
| FileName | The file name to use. | "test.mp3" |
| Compress | If 1, the embedded file is compressed. Pass 0 for no compression. | 0 |
| Container | The container with the file content. | Test::MyFile |

### Result

Returns annotation handle or error.

### Description

Inserts a file attachment annotation on the current open page.   
Same as [DynaPDF.FileAttachAnnot](DynaPDFFileAttachAnnot.md), but with data from container instead of file path.  
See also [FileAttachAnnotEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/FileAttachAnnotEx.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.FileAttachAnnot](DynaPDFFileAttachAnnot.md)
- [DynaPDF.New](DynaPDFNew.md)

### Release notes

- **Version 8.0**
    - Added [DynaPDF.RenderPDFFileEx](http://www.mbsplugins.eu/DynaPDFRenderPDFFileEx.shtml), [DynaPDF.FileAttachAnnotEx](http://www.mbsplugins.eu/DynaPDFFileAttachAnnotEx.shtml) and [DynaPDF.ExtractText](http://www.mbsplugins.eu/DynaPDFExtractText.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 7.6pr5](https://www.mbsplugins.de/archive/2017-12-22/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 21st December 2017 , last changed 21st December 2017

  
[DynaPDF.FileAttachAnnot](DynaPDFFileAttachAnnot.md) - [DynaPDF.FileLink](DynaPDFFileLink.md)

[HTML Version](DynaPDFFileAttachAnnotEx.shtml)