PDFium Delphi Component Docs

Subject プロパティ

コンポーネント: TPdf  ·  ユニット: PDFium
PDF 文書情報辞書の /Subject エントリの値を返します

Syntax

property Subject: WString; // read only

Description

Subject は文書の /Subject Info 辞書エントリ、すなわち文書が何についてのものであるかの短い自由形式の記述を返します。このプロパティは MetaText['Subject'] へ委譲し、そのキーに対して PDFium の FPDF_GetMetaText を呼び出します。このフィールドは /Title、/Author、/Keywords とともに ISO 32000-1 § 14.3.3 で定義されています

文書に /Subject エントリがないとき、まだ読み込まれていないとき、またはトレーラーの /Info 参照が完全に欠けているとき、プロパティは空の WString を返します。例外は発生しません

概念的に /Subject は「この文書は何か?」に答え、/Title は「この文書は何という名前か?」に答えます。実際には多くの作成元が Subject を空のままにするため、必須フィールドではなくオプションの補足テキストとして扱ってください

Remarks

Example

procedure TForm1.DumpMetadataToGrid;
begin
  Pdf1.Active := True;
  StringGrid1.Cells[0, 0] := 'Field';
  StringGrid1.Cells[1, 0] := 'Value';
  StringGrid1.Cells[0, 1] := 'Title';
  StringGrid1.Cells[1, 1] := Pdf1.Title;
  StringGrid1.Cells[0, 2] := 'Subject';
  StringGrid1.Cells[1, 2] := Pdf1.Subject;
  StringGrid1.Cells[0, 3] := 'Author';
  StringGrid1.Cells[1, 3] := Pdf1.Author;
end;

See Also

Title, Author, Keywords, Creator, MetaText