ImageEn, unit iexBitmaps

TIOParams.PDF_FileVersion

TIOParams.PDF_FileVersion


Declaration

property PDF_FileVersion: String;


Description

Returns the file version of the PDF file, e.g. 1.4 or 1.6.
This value is filled when loading PDF files using the PDFium.
It is NOT used when saving.


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 + #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
}