ImageEn, unit iexBitmaps

TIOParams.PDF_Creator

TIOParams.PDF_Creator


Declaration

property PDF_Creator: WideString;


Description

Specifies the application that created the original document.
This value is filled when loading PDF files using the PDFium, and applied when saving natively. It is NOT used when saving via PDFium (which presently does not support changing of meta-data).

Note: When saving, only ANSI characters are supported


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 +
       'Changed Date: ' + params.PDF_ModifyDate;
  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
}