ImportEMFFromFileOptionalAdvanced

Images, Content streams and optional content groups

Description

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

Syntax

Delphi

Function TPDFlib.ImportEMFFromFileOptionalAdvanced(Const FileName: WideString; OptionalContentGroupID, FontOptions, UseGDIPlus, ColorImagesAsJPEG, ProcessNullPath, SmoothImages: Integer): Integer;

Parameters

FileNameThe EMF file to import
OptionalContentGroupIDThe optional content group that owns the imported image resource
FontOptionsThe same font option value accepted by ImportEMFFromFileOptionalEx
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 cannot be imported or the optional content group is invalid

Remarks

Use this overload when imported report graphics must be controlled by layer visibility or print/export policies