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
| InStream | EMF stream to import |
|---|---|
| OptionalContentGroupID | Optional-content group handle |
| FontOptions | Font handling mode used by the EMF importer |
| GeneralOptions | General EMF import mode |
| Options | Reserved 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