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 Long

DLL

int DLAddType3FontResource(int InstanceID, int FontID, const wchar_t* ResourceType, const wchar_t* ResourceName, int ObjectNumber, int GenerationNumber);
int DLAddType3FontResourceA(int InstanceID, int FontID, const char* ResourceType, const char* ResourceName, int ObjectNumber, int GenerationNumber);

Parameters

FontIDHandle of a Type 3 font created by AddType3Font
ResourceTypeFont, XObject, ColorSpace, Pattern, Shading, ExtGState, or Properties, compared case-insensitively
ResourceNameResource name used as /ResourceName in glyph content; a leading slash is ignored and an empty name is rejected
ObjectNumberPositive object number of an existing indirect object in the selected document
GenerationNumberNon-negative generation number of that object

Return values

1The resource entry was added or replaced
0The 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