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 (Metadata metadata = 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....Along with full featured Java library we provide simple, but powerful...
This article explains how the The GroupDocs.Metadata API allows reading some common MPEG audio properties from MP3 files....Along with full featured Java library we provide simple, but powerful...
This article shows the implementation of annotation redaction for documents of different formats like PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and others....NET library we provide simple, but powerful...
This article gives the knowledge of the API methods which can be used to perform operations about spelling corrector using Java....NET library we provide simple, but powerful...
There might be cases when the document is presented only as a stream (without a copy on the local disk). To avoid the overhead of saving documents to the disk, GroupDocs.Parser enables to extract data from streams directly.
The following example shows how to load the document from the stream:
// Create the stream try (InputStream stream = new FileInputStream(Constants.SamplePdf)) { // Create an instance of Parser class with the stream try (Parser parser = new Parser(stream)) { // Extract a text into the reader try (TextReader reader = parser....Along with full featured Java library we provide simple, but powerful...
Learn how to add text watermark to DOCX using C# without installing extra software. Moreover, we will provide you code to insert text watermark to DOCX using C#....After configuring the chosen library and adjusting file paths as...
In this topic, you will learn how to perform faceted search using C#. We will provide sample code example to create faceted search in C# without requiring any tools....NET library to implement full-text search...