PDFium Delphi Component Docs

MetaText プロパティ

コンポーネント: TPdf  ·  ユニット: PDFium
タグ指定で Info 辞書の 1 フィールドを読み取るか、8 つの標準メタデータフィールドを一括でスナップショットします

構文

property MetaText[const Tag: string]: WString; // read only
property Metadata: TPdfDocumentMetadata; // read only

説明

MetaText[Tag] は PDFium を通じて文書の Info 辞書から UTF-16 の値を読み取ります。標準タグ名もカスタムタグ名も扱えます

Metadata は Title、Author、Subject、Keywords、Creator、Producer、CreationDate、ModifiedDate を含む 1 つの TPdfDocumentMetadata スナップショットを返します

存在しないフィールドは空の文字列として返されます

備考

例

var Info: TPdfDocumentMetadata;
begin
  Info := Pdf1.Metadata;
  Caption := Info.Title + ' — ' + Info.Author;
end;

関連項目

Author, Title, Subject, Creator, Producer