SetEmbeddedFileAssociated
관련 파일, 첨부 파일, 문서 편집
설명
기존 포함 파일을 문서 Catalog /AF 배열에 추가하거나 포함된 페이로드를 제거하지 않고 Catalog 연결을 제거함
구문
Delphi
Function TPDFlib.SetEmbeddedFileAssociated(EmbeddedFileIndex, Associated: Integer; Const Relationship: WideString): Integer;ActiveX
Function PDFlib::SetEmbeddedFileAssociated(EmbeddedFileIndex As Long, Associated As Long, Relationship As String) As LongDLL
int DLSetEmbeddedFileAssociated(int InstanceID, int EmbeddedFileIndex, int Associated, const wchar_t* Relationship);
int DLSetEmbeddedFileAssociatedA(int InstanceID, int EmbeddedFileIndex, int Associated, const char* Relationship);매개변수
| EmbeddedFileIndex | 문서 EmbeddedFiles 이름 트리에서 첨부 파일의 1부터 시작하는 인덱스 |
|---|---|
| Associated | 1은 카탈로그 /AF 연결을 추가하고 0은 제거하며, 그 밖의 값은 거부됩니다 |
| Relationship | 추가할 때 /AFRelationship에 기록되는 관계 이름이며, Source, Data, Alternative, Supplement, Unspecified 중 하나여야 합니다 |
반환 값
성공하면 1을 반환하고 인덱스, 플래그 또는 관계가 유효하지 않으면 0을 반환합니다
비고
Associated는 0 또는 1입니다
추가할 때 Relationship은 다섯 가지 표준 연관 파일 관계 이름 중 하나여야 합니다
연결을 제거해도 /AFRelationship가 유지되므로 포함 파일 접근성 메타데이터가 그대로 보존됩니다