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 getImageType method to obtain file format information advanced_usage.managing_metadata_for_specific_formats.image.ImageReadFileFormatProperties
try (Metadata metadata = new Metadata(Constants.InputPng)) { ImageRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getImageType().getFileFormat()); System.out.println(root.getImageType().getByteOrder()); System.out.println(root.getImageType().getMimeType()); System.out.println(root.getImageType().getExtension()); System.out.println(root.getImageType().getWidth()); System.out.println(root.getImageType().getHeight()); } More resources GitHub examples You may easily run the code above and see the feature in action in our GitHub examples:...and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
Learn how to extract data from ZIP archives using GroupDocs.Parser for Python via .NET. Extract files, iterate through archive contents, and parse nested archives....docx']) """ os . makedirs ( output_dir...Usage - extract only PDF and DOCX files extract_specific_files...
This article explains how to load password-protected document while using GroupDocs. Watermarks Java API....docx" String filePath = "protected-document.docx" ; Watermarker... save ( "protected-document.docx" ); watermarker . close ();...
This article explains how to merge some pages from different documents into single PDF, Docx, Excel or PowerPoint document using GroupDocs.Merger for .NET....docx" ; string filePath2 = @"c:\sample2.docx" ; string...filePathOut = @"c:\output\result.docx" ; PageJoinOptions joinOptions...
Do you want to transform a non-editable document to Word format? If so, then learn how to convert PDF to RTF in Java and review code for Java PDF to RTF application....document formats including DOC, DOCX, XLSX, PPTX, TIFF, TXT, CSV...
Let's learn the process of how to extract images from PowerPoint in Java and how to use it for creating the application to get images from PowerPoint using Java....document formats such as PDF, DOC, DOCX, XLSX, RTF, DOT, EPUB, and many...
Learn the process to convert documents with one of the top library and easily convert XML to PDF in C#. Explore sample code for C# convert XML to PDF capability....other formats such as SVG, PPTX, DOCX, MHTML, POTX, XLSX, PNG, MD...
To extract a text from HTML documents GetText method is used. This method allows to extract a text from the entire document. Pagination and raw mode is not supported for emails....extract data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails...
This article shows you how to view and edit metadata of PDF, DOC, Docx, PPT, PPTX, XLS, XLSX, emails, images and more with our free online....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...