PDFPAGE_PlayMetaFileFromFileName
IPDFDocument3 :: PDF page methods

See Also Example
Collapse All

This method adds a metafile directly from a filename to a PDF document.

Syntax

HRESULT PDFPAGE_PlayMetaFileFromFileName (
BSTR fileName
)
Parameters
fileName
Path to the metafile to be painted.

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

This method paints a metafile provided by a filename on the page.

Equivalent in new interface: IPDFDocument4::PlayMetaFile.

Example

Playing (Painting) a Metafile from a File

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_PlayMetaFileExFromFileName('page.emf');
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_PlayMetaFileExFromFileName("page.emf");
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_PlayMetaFileExFromFileName("page.emf");
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_PlayMetaFileExFromFileName "page.emf"
PDF.EndDoc

See Also

Reference