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
| InStream | The EMF stream to import |
|---|---|
| OptionalContentGroupID | The optional content group that owns the imported image resource |
| FontOptions | The same font option value accepted by ImportEMFFromStreamOptionalEx |
| UseGDIPlus | Enables the GDI+ import path when nonzero |
| ColorImagesAsJPEG | Stores compatible color bitmap records with JPEG compression when nonzero |
| ProcessNullPath | Processes null-path records when nonzero |
| SmoothImages | Enables 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