ImageEn, unit iexUserInteractions |
|
TIEPdfViewer.MetaData
Declaration
property MetaData : TIEPDFMetaData;
Description
Return the meta-data of the document, such as title, author and creation date.
Note: This is the same information that is available via
TImageEnView.IO.Params.PDF_*:
◼PDF_Author
◼PDF_Creator
◼PDF_CreateDate
◼PDF_FileVersion (as a string)
◼PDF_Keywords
◼PDF_ModifyDate
◼PDF_Producer
◼PDF_Subject
◼PDF_Title
| Demos\PDF\PDFViewer\PdfViewer.dpr |
| Demos\PDF\PDFViewerToolbar\PdfViewerToolbar.dpr |
var
meta: TIEPDFMetaData;
s: string;
begin
meta := ImageEnView1.PdfViewer.MetaData;
s := 'Title: ' + meta.Title + #13#10 +
'Author: ' + meta.Author + #13#10 +
'Subject: ' + meta.Subject + #13#10 +
'Keywords: ' + meta.Keywords + #13#10 +
'Creator: ' + meta.Creator + #13#10 +
'Producer: ' + meta.Producer + #13#10 +
'Creation Date: ' + meta.CreationDate + #13#10 +
'Changed Date: ' + meta.ModDate + #13#10 +
'File Version: ' + IntToStr( meta.FileVersion );
ShowMessage( s );
end;
{
Example Output:
Title: Document.PDF
Author: Ken Orr
Subject: ImageEn Dev Strategy
Keywords:
Creator: Microsoft Word
Producer: Acrobat 3.02 for Windows
Creation Date: Tuesday, October 23, 2020 12:10
Changed Date: Wednesday, November 25, 2020 12:19
File Version: 16
}