GroupDocs.Parser for .NET

We are pleased to announce the release of version 18.8 of GroupDocs.Parser for .NET. In this version, we have extended the support of text analysis API for spreadsheets, presentations and text documents. Furthermore, the latest version allows providing a password for protected documents on-demand. We’d recommend you to use the latest version of the API and share your feedback.

Features Introduced

Text Analysis API

GroupDocs.Parser allows extracting text areas from the pages of a document. This feature may help you getting data for text analysis. DocumentContent abstract class provides API to extract text areas from document pages. This feature has been extended for spreadsheets, presentations and text documents in the current version of the API. The following code sample shows how to get text areas from a text document.

// Create a text extractor
WordsTextExtractor extractor = new WordsTextExtractor("invoice.docx");
  
// Create search options
TextAreaSearchOptions searchOptions = new TextAreaSearchOptions();
// Set a regular expression to search 'Invoice # XXX' text
searchOptions.Expression = "\\s?INVOICE\\s?#\\s?[0-9]+";
// Limit the search with a rectangle
searchOptions.Rectangle = new GroupDocs.Parser.Rectangle(10, 10, 300, 150);
 
// Get text areas
IList< textarea > texts = extractor.DocumentContent.GetTextAreas(0, searchOptions);
             
// Iterate over a list
foreach(TextArea area in texts)
{
    // Print a text
    Console.WriteLine(area.Text);
}

For more details on this feature, please visit this documentation article.

Requesting the Password for Protected Documents

We have two ways to provide a password for the protected documents. When the password is known, Password property of LoadOptions class is used. If it is not known whether it is protected or not before opening the document, PasswordProvider property of LoadOptions class is used. This feature allows providing a password for protected documents on-demand. _IPasswordProvider _interface is used for this purpose. For more details on this feature, please visit this documentation article.

Available Channels and Resources

Here are a few channels and resources for you to download, learn, try and get technical support on GroupDocs.Parser:

Have Queries?

If you have got any queries or concerns about the API, please feel free to get in touch with us over the forum. We’ll be glad to address your concerns.