Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  


Inserts metafile as vector graphics.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 7.3 No Yes Yes, Windows only No No

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


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Filename The native file path to the EMF file. "C:\test.wmf"
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 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.


Returns OK or error.


Inserts metafile as vector graphics.
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to native PDF vector graphics.
EMF+ files do not work.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.

See also InsertMetafile function in DynaPDF manual.

See also

DynaPDF.InsertImageFile   -   DynaPDF.InsertMetafileEx

Feedback: Report problem or ask question.

MBS Xojo Plugins