SetEmbeddedFileAssociated

関連ファイル、添付ファイル、ドキュメント編集

説明

既存の埋め込みファイルを文書カタログの /AF 配列に追加するか、埋め込みペイロードを削除せずにそのカタログ関連付けを削除します

構文

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 Long

DLL

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 から始まるインデックス
Associated1 はカタログの /AF 関連付けを追加し、0 は削除します。その他の値は拒否されます
Relationship追加時に /AFRelationship へ書き込まれる関係名。Source、Data、Alternative、Supplement、Unspecified のいずれかである必要があります

戻り値

成功時は 1、無効なインデックス、フラグ、または関係の場合は 0 を返します

備考

Associated は 0 または 1 です

追加時、Relationship は 5 つの標準 associated-file 関係名のいずれかでなければなりません

関連付けを削除しても /AFRelationship が保持されるため、埋め込みファイルのアクセシビリティメタデータは維持されます