Debenu Quick PDF logo

ImportEMFFromFile

Vector graphics, Image handling

Version history

This function was introduced in Quick PDF Library version 7.15.

Description

Adds a WMF or EMF image from a file to the selected document.

Once an image has been added to the document it can be drawn on any page multiple times without further increasing the size of the PDF file.

Availability

Windows/Delphi, Windows/ActiveX, Windows/DLL, Mac/Dylib, iOS, Android

Parameters

FileName unistr The file name of the image to add.
FontOptions int32 If GeneralOptions is 1 this parameter is ignored, otherwise the following values take effect:
0 = Use the first font added to the PDF
1 = Automatically add fonts as non-embedded TrueType fonts
GeneralOptions int32 0 = Import as a vector image
1 = Import as a bitmap image

Return type and values

0 int32 The image could not be added
Non-zero int32 The image was added successfully. The ImageID is returned which can be passed to functions like SelectImage and DrawImage.

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport