PDFium Delphi Component Docs

Subject 속성

컴포넌트: TPdf  ·  유닛: PDFium
PDF document information dictionary의 /Subject 항목 값을 반환합니다

Syntax

property Subject: WString; // read only

Description

Subject는 문서의 /Subject info 딕셔너리 항목, 즉 문서가 무엇에 관한 것인지 알려 주는 짧은 자유 형식 설명을 반환합니다. 이 프로퍼티는 MetaText['Subject']에 위임하며, MetaText는 그 키로 PDFium의 FPDF_GetMetaText를 호출합니다 이 필드는 ISO 32000-1 § 14.3.3에서 /Title, /Author, /Keywords와 함께 정의되어 있습니다

문서에 /Subject 항목이 없거나 아직 로드되지 않았거나 trailer의 /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