PDFium Delphi Component Docs

AttachmentRelationshipFeaturesAvailable 関数

ユニット: PDFium
読み込んだ pdfium.dll が FPDFAttachment_GetAFRelationship をエクスポートしているかどうかを報告します

構文

function AttachmentRelationshipFeaturesAvailable: Boolean;

パラメーター

なし

戻り値

Boolean

説明

AttachmentRelationshipFeaturesAvailable は、必要に応じて選択された PDFium モジュールを読み込み、オプションの FPDFAttachment_GetAFRelationship エントリポイントがエクスポートされていれば True を返します

エクスポートが存在する場合、AttachmentRelationship、ReadAttachmentMetadata が返す TPdfAttachmentMetadata の Relationship フィールド、そして TryGetAnnotationFileAttachment が設定する Relationship フィールドは、file specification の /AFRelationship 名(ISO 32000-2 Table 43)を報告します

エクスポートが存在しない場合、これらの値は /AFRelationship エントリを持たない file specification の場合とまったく同じく空文字列になります

備考

例

if AttachmentRelationshipFeaturesAvailable and (Pdf.AttachmentRelationship[0] = 'Source') then
  ShowMessage('First attachment is the source document');

関連項目

TPdf.AttachmentRelationship, TPdf.ReadAttachmentMetadata, AttachmentDescriptionFeaturesAvailable