This code snippet demonstrates how to extract information about known properties that can be encountered in a particular package.
Load a file to examine Get a collection of PropertyDescriptor instances for any desired metadata package Iterate through the extracted descriptors advanced_usage.GettingKnownPropertyDescriptors
try (Metadata metadata = new Metadata(Constants.InputDoc)) { WordProcessingRootPackage root = metadata.getRootPackageGeneric(); for (PropertyDescriptor descriptor : root.getDocumentProperties().getKnowPropertyDescriptors()) { System.out.println(descriptor.getName()); System.out.println(descriptor.getType()); System.out.println(descriptor.getAccessLevel()); for (PropertyTag tag : descriptor.getTags()) { System.out.println(tag); } System.out.println(); } } Note Not all possible properties are presented in the getKnowPropertyDescriptors collection....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
Detecting the GIF version The following sample of code will help you to detect the version of a loaded GIF image and extract some additional file format information.
Load a GIF image Extract the root metadata package Use the FileType property to obtain file format information AdvancedUsage.ManagingMetadataForSpecificFormats.Image.Gif.GifReadFileFormatProperties
using (Metadata metadata = new Metadata(Constants.InputGif)) { var root = metadata.GetRootPackage(); Console.WriteLine(root.FileType.FileFormat); Console.WriteLine(root.FileType.Version); 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); } Working with XMP Metadata GroupDocs....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
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 (Metadata metadata = new Metadata(Constants.InputJpeg2000)) { var root = metadata.GetRootPackage(); if (root....and edit metadata of PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, emails...
This article shows that how synonym search allows you to find not only the words specified in the search query, but also the synonyms, words that means the same....to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more...
In some cases it’s required to specify the document format manually to guarantee correct output produced by GroupDocs.Parser. The following are the cases when the document format must be specified manually:
Markdown documents MHTML documents OTP documents (OpenDocument Presentation Template) Databases Emails from remote servers Here are the steps to specify the document format for Markup document.
Instantiate the LoadOptions object and pass the document format in LoadOptions(FileFormat) constructor; Create Parser object and call any method....extract data from PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX, Emails...
This code snippet demonstrates how to extract information about known properties that can be encountered in a particular package.
Load a file to examine Get a collection of PropertyDescriptor instances for any desired metadata package Iterate through the extracted descriptors advanced_usage.GettingKnownPropertyDescriptors
JavaScript const metadata = new groupdocs.metadata.Metadata("input.doc"); var root = metadata.getRootPackageGeneric(); var descriptors = root.getDocumentProperties().getKnowPropertyDescriptors(); for(var i=0;iDOCX, PPT, PPTX, XLS, XLSX, emails...
This article explains that how to optimize index to reduce the number of segments in an index using Java....to search over your PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and more...