SetCatalogInformationA
문서 속성
설명
뒤의 A는 ANSI(char) DLL 진입점을 나타내며 ActiveX/COM 표면은 Unicode 형식만 제공합니다 동작은 SetCatalogInformation과 동일하며 문자열 인수는 현재 SetAnsiMode 코드 페이지를 사용하여 해석됩니다
이 함수를 사용하면 PDF 문서에 사용자 지정 정보를 저장할 수 있습니다 SetCustomInformation 함수와 비슷하지만 정보가 Document Information Dictionary 대신 Document Catalog에 저장됩니다 메타데이터는 SetCustomInformation을 사용하여 Document Information Dictionary에 저장해야 하며, 비공개 콘텐츠 또는 구조 정보는 이 함수를 사용하여 Document Catalog에 저장해야 합니다
키는 라이브러리나 PDF 사양이 관리하는 Catalog 시스템 키일 수 없습니다. 예약 이름에는 Type, Version, Extensions, Pages, PageLabels, Names, Dests, ViewerPreferences, OpenAction, AA, AcroForm, Metadata, StructTreeRoot, MarkInfo, Lang, SpiderInfo, OutputIntents, PieceInfo, OCProperties, Perms, Legal, Requirements, Collection, NeedsRendering이 포함됩니다
구문
Delphi
Function DLSetCatalogInformationA(InstanceID: Integer; Key, NewValue: PAnsiChar): Integer;
DLL
int DLSetCatalogInformationA(int InstanceID, const char * Key, const char * NewValue);
매개변수
| Key | 설정할 키 이름입니다. 다른 소프트웨어와 충돌하지 않도록 Adobe가 할당한 특수 접두사가 있어야 합니다 |
|---|---|
| NewValue | 지정한 키의 새 값 |
반환 값
| 0 | 지정한 키를 설정할 수 없습니다. 시스템 키일 수 있습니다 |
|---|---|
| 1 | 지정한 키 값이 성공적으로 설정되었습니다 |