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(); 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.... For example, you may want to obtain information about...resources GitHub examples You may easily run the code above and...
The easiest way to remove metadata properties from a file is to use corresponding tags that allow you to locate the desired properties across all metadata packages.... GitHub examples You may easily run the code above and...
Learn how to merge MP3 audio files, combine MP3 audio files into one file programmatically in C# language using GroupDocs.Merger for .NET library.... You may specify absolute or relative...
Learn how to merge archives to ZIP file, combine archives into one ZIP file programmatically in C# language using GroupDocs.Merger for .NET library.... You may specify absolute or relative...
Learn how to merge images to PDF file, combine images into one PDF file programmatically in C# language using GroupDocs.Merger for .NET library.... You may specify absolute or relative...
Learn how to merge TIFF image files, combine TIFF image files into one file programmatically in java language using GroupDocs.Merger for Java library.... You may specify absolute or relative...
Learn how to merge GIF image files, combine GIF image files into one file programmatically in java language using GroupDocs.Merger for Java library.... You may specify absolute or relative...
This article explains how to access EXIF metadata in a file of any supported format....Please note that the chosen ID may intersect with the IDs used by...resources GitHub examples You may easily run the code above and...
Learn this article and check how to load and convert XML documents with advanced options using GroupDocs.Conversion for Java API.... You may want to skip loading external...