Detecting the version of a Pdf document The following sample of code will help you to detect the Pdf version a loaded document and extract some additional file format information.
Load a Pdf document Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Document.Pdf.PdfReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPdf)) { var root = metadata.GetRootPackage<PdfRootPackage>(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.Version); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); } Reading built-in metadata properties To access built-in metadata of a Pdf document, please use the DocumentProperties property defined in the DocumentRootPackage class....Signature Product Solution GroupDocs...metadata in PDF documents Working with metadata in PDF documents...