ImportEMFFromStreamOptionalAdvanced

Images, Content streams and optional content groups

Description

Imports EMF stream data with named advanced import options and assigns the resulting image resource to an optional content group

Syntax

Delphi

Function TPDFlib.ImportEMFFromStreamOptionalAdvanced(InStream: TStream; OptionalContentGroupID, FontOptions, UseGDIPlus, ColorImagesAsJPEG, ProcessNullPath, SmoothImages: Integer): Integer;

Parameters

InStreamThe EMF stream to import
OptionalContentGroupIDThe optional content group that owns the imported image resource
FontOptionsThe same font option value accepted by ImportEMFFromStreamOptionalEx
UseGDIPlusEnables the GDI+ import path when nonzero
ColorImagesAsJPEGStores compatible color bitmap records with JPEG compression when nonzero
ProcessNullPathProcesses null-path records when nonzero
SmoothImagesEnables image smoothing where the importer supports it

Return values

Returns the new ImageID, or 0 when the EMF stream cannot be imported or the optional content group is invalid

Remarks

The stream overload keeps layer-aware EMF workflows usable without intermediate files