For all supported image formats the GroupDocs.Metadata API allows extracting common image properties such as width and height, MIME type, byte order, etc. Please see the code snippet below for more information on the feature.
Load an image Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.ImageReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputPng)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.ByteOrder); Console.WriteLine(root.FileType.MimeType); Console.WriteLine(root.FileType.Extension); Console.WriteLine(root.FileType.Width); Console.WriteLine(root.FileType.Height); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...Viewer Product Solution GroupDocs...to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX...
Reading FLV header properties The GroupDocs.Metadata API supports extracting format-specific information from the FLV file header.
The following are the steps to read the header of an FLV file.
Load an FLV video Get the root metadata package Extract the native metadata package using the FlvRootPackage.getHeader method Read the FLV header properties advanced_usage.managing_metadata_for_specific_formats.video.flv.FlvReadHeaderProperties
try (Metadata metadata = new Metadata(Constants.InputFlv)) { FlvRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getHeader().getVersion()); System.out.println(root.getHeader().hasAudioTags()); System.out.println(root.getHeader().hasVideoTags()); System.out.println(root.getHeader().getTypeFlags()); } Working with XMP metadata GroupDocs....Viewer Product Solution GroupDocs...to view and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX...
This article explains how to detect document file type, size and calculate pages count with GroupDocs.Comparison....Viewer Product Solution GroupDocs...represents the document file type (PDF, Word document, Excel spreadsheet...
Edit Microsoft Office documents like Word, Excel or PowerPoint or Pdf with help of GroupDocs.Editor for Java without third party software installed....Viewer Product Solution GroupDocs...popular document formats such as PDF, DOCX, XLSX, PPTX, XPS and others...
Comprehensive overview of GroupDocs.Parser for .NET features including text extraction, metadata extraction, image extraction, template-based parsing, and Pdf form data extraction from 50+ document formats....Viewer Product Solution GroupDocs...documents like ZIP archives, PDF portfolios, emails, OST containers...
This section contains issues that you may face and solutions for them when processing files with GroupDocs.Viewer....Viewer Product Solution GroupDocs...GroupDocs.Viewer Product Family / GroupDocs.Viewer for Java /...
Learn this article and check how to load and convert password-protected documents using GroupDocs.Conversion for Java API....Viewer Product Solution GroupDocs...outputPath = "./password-protected.pdf" PdfConvertOptions convertOptions...
This short tutorial describes the process to extract metadata from Word document using Java, and how to iterate through the metadata word document in Java....Viewer Product Family GroupDocs.Comparison...various document formats such as PDF, XLSX, PPTX, MSG, EML, EPUB,...
The page describes how to add an underline annotation to a document using GroupDocs.Annotation for .NET....Viewer Product Solution GroupDocs...annotator = new Annotator ( "input.pdf" )) { UnderlineAnnotation underline...