ImportEMFFromFileOptionalEx

Vector graphics, Content Streams and Optional Content Groups

Description

Imports an EMF file with the extended EMF import signature and attaches the resulting image to an optional-content group

Syntax

Delphi

Function TPDFlib.ImportEMFFromFileOptionalEx(Const FileName: WideString; OptionalContentGroupID, FontOptions, GeneralOptions, Options: Integer): Integer;

Parameters

FileNameEMF file to import
OptionalContentGroupIDOptional-content group handle
FontOptionsFont handling mode used by the EMF importer
GeneralOptionsGeneral EMF import mode
OptionsReserved extended import flags

Return values

Returns the new ImageID, or 0 if the EMF or optional-content group is invalid

Remarks

After import, the selected image is the EMF image and its image XObject carries the selected OCG reference

See also

ImportEMFFromStreamOptionalEx, ImportEMFFromFileEx, SetImageOptional