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 (MetadataMetadata = 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....Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for .NET...
Read, edit, and remove the major image Metadata standards — EXIF, IPTC IIM, and XMP — with GroupDocs.Metadata for Python via .NET....Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for Python...
Clone Metadata from the source or target document, or supply custom author/company Metadata to the result file using SaveOptions.CloneMetadataType in GroupDocs.Comparison for .NET....Metadata Product Solution GroupDocs...Set document metadata on save Set document metadata on save Leave...
Reading PNG Metadata properties The GroupDocs.Metadata API supports extracting format-specific information from PNG images.
The following are the steps to read the native PNG Metadata.
Load a PNG image Get the root Metadata package Extract the native Metadata package using PngRootPackage.getPngPackage Read the PNG Metadata properties advanced_usage.managing_Metadata_for_specific_formats.image.png.PngReadTextChunks
try (MetadataMetadata = new Metadata(Constants.InputPng)) { PngRootPackage root = Metadata.getRootPackageGeneric(); for (PngTextChunk chunk : root.getPngPackage().getTextChunks()) { System.out.println(chunk.getKeyword()); System.out.println(chunk.getText()); if (chunk instanceof PngCompressedTextChunk) { PngCompressedTextChunk compressedChunk = (PngCompressedTextChunk) chunk; System....Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for Java...
Reading Photoshop Metadata properties The GroupDocs Metadata API allows the user to read Adobe Photoshop Metadata associated with a JPEG image. For more information on the Photoshop file format and Metadata blocks that can be attached to images of different formats please refer to the specification: https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/.
The code sample below demonstrates how to extract image resource blocks (building blocks of the Photoshop file format) from a JPEG image....Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for Java...
This article explains how to add Metadata signatures to Spreadsheet document with GroupDocs.Signature...Metadata Product Solution GroupDocs...Electronic signature types / Metadata signatures / eSign Spreadsheet...
This article explains how to add Metadata signatures to PDF document meta info layer with GroupDocs.Signature...Metadata Product Solution GroupDocs...Electronic Signature Types / Metadata signatures / eSign PDF eSign...
To extract Metadata from EPUB e-books GetMetadata method is used...Metadata Product Solution GroupDocs.../ Extract metadata from EPUB eBook Extract metadata from EPUB...
This article shows how to access IPTC Metadata in a file of any supported format....Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for .NET...
Working with XMP Metadata GroupDocs.Metadata for Java also allows managing XMP Metadata in MP3 files. For more details please refer to the following guide: Working with XMP Metadata...Metadata Product Solution GroupDocs...GroupDocs.Metadata Product Family / GroupDocs.Metadata for Java...