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);
int DLAddType3FontResourceA(int InstanceID, int FontID, const char* ResourceType, const char* ResourceName, int ObjectNumber, int GenerationNumber);參數
| FontID | 由 AddType3Font 建立之 Type 3 字型的控制代碼 |
|---|---|
| ResourceType | Font、XObject、ColorSpace、Pattern、Shading、ExtGState 或 Properties,比較時不分大小寫 |
| ResourceName | 在字符內容中用作 /ResourceName 的資源名稱;前置斜線會被忽略,空名稱會被拒絕 |
| ObjectNumber | 所選文件中既有間接物件的正物件編號 |
| GenerationNumber | 該物件的非負生成編號 |
傳回值
| 1 | 資源條目已加入或取代 |
|---|---|
| 0 | 字型、類別、名稱或物件參照無效 |
備註
字形內容以提供的資源做為 /ResourceName。字型物件編號可從 GetFontObjectNumber 取得;影像列舉與低階物件 API 則會提供其他資源物件編號