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.... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
You can implement ILogger interface from com.groupdocs.redaction.options package. This interface requires to implement three methods:
import com.groupdocs.redaction.options.ILogger; import java.util.ArrayList; /** *
* This is an example of ILogger implementation, tracking count of error messages. *
*/ public class CustomLogger implements ILogger { private ArrayList _errors; private ArrayList _traces; private ArrayList _warnings; public boolean hasErrors() { return _errors.size() > 0; } public CustomLogger() { _errors = new ArrayList(); _traces = new ArrayList(); _warnings = new ArrayList(); } public void error(String message) { _errors.... close (); } Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
Follow this guide and learn how to merge PDF files, combine several PDFs into one using GroupDocs.Merger for Java API and couple lines of code... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
This article explains how to add attachment to PDF document with GroupDocs.Merger within your .NET applications....pdf" ); } Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
Example demonstrates some advanced usage scenarios of the GroupDocs.Metadata search engine allowing to remove metadata properties... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
Learn how to merge TXT files, combine TXT files into one file programmatically in java language using GroupDocs.Merger for Java library.... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
Learn how to merge EPUB files, combine EPUB files into one file programmatically in C# language using GroupDocs.Merger for .NET library.... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
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.PngPackage Read the PNG metadata properties AdvancedUsage.ManagingMetadataForSpecificFormats.Image.Png.PngReadTextChunks
using (Metadata metadata = new Metadata(Constants.InputPng)) { var root = metadata.GetRootPackage(); foreach (var chunk in root.PngPackage.TextChunks) { Console.WriteLine(chunk.Keyword); Console.WriteLine(chunk.Text); var compressedChunk = chunk as PngCompressedTextChunk; if (compressedChunk !... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
This section describes how to import OLE objects into PDF documents using C#/.NET...following article: Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...
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 the FlvRootPackage.getHeader method Read the FLV header properties advanced_usage.managing_metadata_for_specific_formats.video.flv.FlvReadHeaderProperties
try (Metadata metadata = new Metadata(Constants.InputFlv)) { FlvRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getHeader().getVersion()); System.out.println(root.getHeader().hasAudioTags()); System.out.println(root.getHeader().hasVideoTags()); System.out.println(root.getHeader().getTypeFlags()); } Working with XMP metadata GroupDocs.... Was this page helpful? Not really Yes, thanks...tell us how we can improve this page. Skip Send Thank you for your...