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...
Learn how to merge TXT files, combine TXT files into one file programmatically in net language using GroupDocs.Merger for Python via .NET 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...
This article shows how to add a text watermark and save the resultant document. It is capable of adding watermarks to images or documents.... You may add watermarks to documents or...
This article shows how to add an image watermark and save the resultant document. It is capable of adding watermarks to images or documents.... You may add watermarks to documents or...
This article shows how to to extract data from Microsoft Office Excel spreadsheets....resources GitHub examples You may easily run the code above and...
This article explains that how to optimize index to reduce the number of segments in an index....resources GitHub examples You may easily run the code from documentation...
This article shows that how to allow you to search for nouns in the singular or plural, adjectives in the degree of comparison, forms of regular and irregular verbs, etc....resources GitHub examples You may easily run the code from documentation...