/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.
Trueを返すか確認してください。非アクティブなコンポーネントでは、このプロパティは例外を送出せず空文字列を返しますWString contains usable Unicode regardless of
the underlying byte form.dc:descriptionプロパティにも対応します。PDF/A 文書では両方の表現を同期しておく必要があります
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;