ImportEMFFromStream

Vector graphics, Image handling

Description

Adds a WMF or EMF image from a TStream 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.

Syntax

Delphi

function TPDFlib.ImportEMFFromStream(InStream: TStream; FontOptions, GeneralOptions: Integer): Integer;

ActiveX

Function PDFlib::ImportEMFFromStream(InStream As Long, FontOptions As Long, GeneralOptions As Long) As Long

Parameters

InStreamThe TStream object containing the EMF/WMF data
FontOptionsIf 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 0 = Import as a vector image 1 = Import as a bitmap image
GeneralOptions