ImportEMFFromStreamOptionalEx

Vector graphics, Content Streams and Optional Content Groups

Description

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

Syntax

Delphi

Function TPDFlib.ImportEMFFromStreamOptionalEx(InStream: TStream; OptionalContentGroupID, FontOptions, GeneralOptions, Options: Integer): Integer;

Parameters

InStreamEMF stream 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 stream or optional-content group is invalid

Remarks

Use this entry when EMF data already lives in memory and should be tied to a viewer layer immediately

See also

ImportEMFFromFileOptionalEx, ImportEMFFromStreamEx, SetImageOptional