SetCatalogInformation

문서 속성

설명

이 함수를 사용하면 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 TPDFlib.SetCatalogInformation(Const Key, NewValue: WideString): Integer;

ActiveX

Function PDFlib::SetCatalogInformation(Key As String, NewValue As String) As Long

DLL

int DLSetCatalogInformation(int InstanceID, const wchar_t * Key, const wchar_t * NewValue);

매개변수

Key설정할 키 이름입니다. 다른 소프트웨어와 충돌하지 않도록 Adobe가 할당한 특수 접두사가 있어야 합니다
NewValue지정한 키의 새 값

반환 값

0지정한 키를 설정할 수 없습니다. 시스템 키일 수 있습니다
1지정한 키 값이 성공적으로 설정되었습니다