PDFium Component Docs

Subject プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Returns the value of the /Subject entry from the PDF document information dictionary.

構文

property Subject: WString; // read only

説明

Subject returns the document's /Subjectinfo-dictionary エントリです。文書の内容を短く自由形式で説明しますabout. The property delegates to MetaText['Subject'], which invokes PDFium's FPDF_GetMetaTextを取得します。このフィールドは ISO 32000-1 § 14.3.3 で/Title, /Author, and /Keywords.

When the document has no /Subjectエントリがない場合、まだ読み込まれていない場合、または trailer の/Info参照自体が欠落している場合、このプロパティは空のWString. No exception is raised.

Conceptually /Subject answers "what is this document?" while /Title answers "what is this document named?". In practice many producers leave Subject blank, so treat it as optional supplementary text rather than a required field.

備考

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;

関連項目

Title, Author, Keywords, Creator, MetaText