ImportEMFFromFileOptionalEx
Vector graphics, Content Streams and Optional Content Groups
Description
Imports an EMF file with the extended EMF import signature and attaches the resulting image to an optional-content group
Syntax
Delphi
Function TPDFlib.ImportEMFFromFileOptionalEx(Const FileName: WideString; OptionalContentGroupID, FontOptions, GeneralOptions, Options: Integer): Integer;
Parameters
| FileName | EMF file 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 EMF or optional-content group is invalid
Remarks
After import, the selected image is the EMF image and its image XObject carries the selected OCG reference
See also
ImportEMFFromStreamOptionalEx, ImportEMFFromFileEx, SetImageOptional