AddType3FontResource
Fonts, PDF resources
Description
Adds or replaces a named indirect object in the resource dictionary shared by all glyph programs of a Type 3 font
Syntax
Delphi
Function TPDFlib.AddType3FontResource(FontID: Integer; Const ResourceType, ResourceName: WideString; ObjectNumber, GenerationNumber: Integer): Integer;ActiveX
Function PDFlib::AddType3FontResource(FontID As Long, ResourceType As String, ResourceName As String, ObjectNumber As Long, GenerationNumber As Long) As LongDLL
int DLAddType3FontResource(int InstanceID, int FontID, const wchar_t *ResourceType, const wchar_t *ResourceName, int ObjectNumber, int GenerationNumber);Parameters
ResourceType is Font, XObject, ColorSpace, Pattern, Shading, ExtGState, or Properties. The object and generation numbers must identify an existing indirect object in the selected document
Return values
| 1 | The resource entry was added or replaced |
|---|---|
| 0 | The font, category, name, or object reference is invalid |
Remarks
Glyph content uses the supplied resource as /ResourceName. Font object numbers are available from GetFontObjectNumber; image enumeration and low-level object APIs expose other resource object numbers