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는 다른 리소스 개체 번호를 노출합니다