ImageEn, unit iexBitmaps

TIOParams.PDF_CreateDate

TIOParams.PDF_CreateDate


Declaration

property PDF_CreateDate: WideString;


Description

Returns the date that the document was created.
This value is filled when loading PDF files using the PDFium.
It is NOT used when saving.

For a TDateTime formatted version, use PDF_CreateDate2


Example

// Load a PDF file and show meta-data
var
  params: TIOParams;
  s: string;
begin
  ImageEnView1.PdfViewer.Enabled := True;
  ImageEnView1.IO.LoadFromFilePDF( 'C:\document.pdf' );
  params := ImageEnView1.IO.Params;
  s := 'Title: '         + params.PDF_Title      + #13#10 +
       'Author: '        + params.PDF_Author     + #13#10 +
       'Subject: '       + params.PDF_Subject    + #13#10 +
       'Keywords: '      + params.PDF_Keywords   + #13#10 +
       'Creator: '       + params.PDF_Creator    + #13#10 +
       'Producer: '      + params.PDF_Producer   + #13#10 +
       'Creation Date: ' + params.PDF_CreateDate + #13#10 +
       'File Version: '  + params.PDF_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: 1.6
}