PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method adds a metafile directly from a filename to a PDF document at the specified coordinates.
|
| HRESULT PDFPAGE_PlayMetaFileExFromFileName ( BSTR fileName, DOUBLE x, DOUBLE y, DOUBLE scaleX, DOUBLE scaleY ) |
Parameters
fileName
Path to the metafile to be painted.
x
X coordinate of the drawing position.
y
Y coordinate of the drawing position.
scaleX
Horizontal scale factor.
scaleY
Vertical scale factor.
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 at the specified coordinates (x, y) with scaling (scaleX, scaleY).
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', 10, 10, 0.5, 0.5);
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_PlayMetaFileExFromFileName("page.emf", 10, 10, 0.5, 0.5);
PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_PlayMetaFileExFromFileName("page.emf", 10, 10, 0.5, 0.5);
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_PlayMetaFileExFromFileName "page.emf", 10, 10, 0.5, 0.5 PDF.EndDoc
See Also


