DynaPDF.InsertMetafileEx
------------------------

Inserts metafile as vector graphics.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [7.3](newinversion73.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "DynaPDF.InsertMetafileEx"; PDF; Data; PosX; PosY; Width; Height { ; ViewLeft; ViewTop; ViewRight; ViewBottom } ) 

**MBS**( **"DynaPDF.InsertMetafileEx";** /\* Inserts metafile as vector graphics. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Data**; /\* The container value with EMF or WMF file inside. \*/   
**$PosX**; /\* X-Coordinate of output rectanglee.g. 100 \*/   
**$PosY**; /\* Y-Coordinate of output rectangle.e.g. 100 \*/   
**$Width**; /\* Width of output rectangle. \*/   
**$Height**; /\* Height of output rectangle. \*/   
**$ViewLeft**; /\* Optional; The left coordinate of the view rectangle. \*/   
**$ViewTop**; /\* Optional; The top coordinate of the view rectangle. \*/   
**$ViewRight**; /\* Optional; The right coordinate of the view rectangle. \*/   
**$ViewBottom**) /\* Optional; The bottom coordinate of the view rectangle. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |  |
| Data | The container value with EMF or WMF file inside. |  |  |
| PosX | X-Coordinate of output rectangle | 100 |  |
| PosY | Y-Coordinate of output rectangle. | 100 |  |
| Width | Width of output rectangle. |  |  |
| Height | Height of output rectangle. |  |  |
| ViewLeft | The left coordinate of the view rectangle. |  | Optional |
| ViewTop | The top coordinate of the view rectangle. |  | Optional |
| ViewRight | The right coordinate of the view rectangle. |  | Optional |
| ViewBottom | The bottom coordinate of the view rectangle. |  | Optional |

### Result

Returns OK or error.

### Description

Inserts metafile as vector graphics.  
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to native PDF vector graphics.   
  
The view is optional, see InsertMetafileExtEx in DynaPDF help file.  
EMF+ files do not work.  
  
Requires DynaPDF Lite license.  
See also [InsertMetafileEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/InsertMetafileEx.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.Initialize](DynaPDFInitialize.md)
- [DynaPDF.InsertMetafile](DynaPDFInsertMetafile.md)
- [DynaPDF.New](DynaPDFNew.md)

This function checks for a license.

Created 18th May 2017 , last changed 27th July 2018

  
[DynaPDF.InsertMetafile](DynaPDFInsertMetafile.md) - [DynaPDF.IsColorPage](DynaPDFIsColorPage.md)

[HTML Version](DynaPDFInsertMetafileEx.shtml)