GroupDocs.Metadata for Java provides functionality that allows working with different kinds of diagrams such as VDX, VSDX, VSX, etc. For the full list of supported document formats please refer to Supported document formats.
Detecting the exact type of a document The following sample of code will help you to detect the exact type of a loaded diagram and extract some additional file format information.
Load a Pdf document Extract the root Metadata package Use the getDiagramType method to obtain file format information advanced_usage....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to access XMP Metadata in a file of any supported format....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
Reading JPEG2000 comments The GroupDocs.Metadata API supports extracting format-specific information from JPEG2000 images.
The following are the steps to read the JPEG2000 comments (pieces of Metadata represented as strings with the length up to 64 kbytes).
Load a JPEG2000 image Get the root Metadata package Extract the native Metadata package using Jpeg2000RootPackage.Jpeg2000Package Read the JPEG2000 comments AdvancedUsage.ManagingMetadataForSpecificFormats.Image.Jpeg2000.Jpeg2000ReadComments
using (MetadataMetadata = new Metadata(Constants.InputJpeg2000)) { var root = Metadata.GetRootPackage(); if (root....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
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...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
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...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
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 FlvRootPackage.Header Read the FLV header properties AdvancedUsage.ManagingMetadataForSpecificFormats.Video.Flv.FlvReadHeaderProperties
using (MetadataMetadata = new Metadata(Constants.InputFlv)) { var root = Metadata.GetRootPackage(); Console.WriteLine(root.Header.Version); Console.WriteLine(root.Header.HasAudioTags); Console.WriteLine(root.Header.HasVideoTags); Console.WriteLine(root.Header.TypeFlags); } Working with XMP Metadata GroupDocs....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to add Metadata signatures to the image exif Metadata layer with various data types...Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...
This article shows how to access IPTC Metadata in a file of any supported format....Metadata Product Solution GroupDocs...Product Solution GroupDocs.Watermark Product Solution GroupDocs...