AddType3FontResource
字体、PDF 资源
描述
在 Type 3 字体所有字形程序共享的资源字典中添加或替换命名间接对象
语法
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);参数
ResourceType 为 Font、XObject、ColorSpace、Pattern、Shading、ExtGState 或 Properties,对象编号和生成编号必须标识所选文档中现有的间接对象
返回值
| 1 | 已添加或替换资源条目 |
|---|---|
| 0 | 字体、类别、名称或对象引用无效 |
备注
字形内容将提供的资源用作 /ResourceName。字体对象编号可由 GetFontObjectNumber 获取;图像枚举和底层对象 API 可提供其他资源对象编号