GroupDocs.Parser for .NET 23.11 Release Notes
This page contains release notes for GroupDocs.Parser for .NET 23.11
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
PARSERNET-2173 | Unable to parse .xlsx and .docx files in one environment | Bug |
PARSERNET-2206 | Improve template parsing functionality | Improvement |
PARSERNET-2187 | Implement the support for Kindle documents formats | Feature |
Public API and Backward Incompatible Changes
Improve template parsing functionality
Description
This improvement allows to set case of the field names.
Public API changes
FieldData public class was updated with changes as follows:
- Added FieldData(string, PageArea, FieldData, bool) constructor
- Added FieldData(string, PageArea, bool) constructor
- Added UseUpperCaseName property
TemplateItem public class was updated with changes as follows:
- Added UseUpperCaseName property
TemplateLinkedPosition public class was updated with changes as follows:
- Added TemplateLinkedPosition(string, Size, TemplateLinkedPositionEdges, bool, bool) constructor
Usage
The following example shows how to create instances of template item or field data without name case converting:
// Create an instance of barcode field
TemplateBarcode barcode = new TemplateBarcode(rectangle, "FieldName", 1, false);
// Create an instance of text field
TemplateField field = new TemplateField(position, "FieldName", 1, false);
// Create an instance of table field with layout
TemplateTable table = new TemplateTable(layout, "TableName", null, false);
// Create an instance of table field with table parameters
TemplateTable table = new TemplateTable(parameters, "TableName", 1, false);
// Create an instance of template linked position
TemplateLinkedPosition position = new TemplateLinkedPosition("Name", size, edges, false, false);
// Create an instance of field data
FieldData field = new FieldData("Name", pageArea, false);
Implement the support for Kindle documents formats
Description
This feature adds the ability to exract a text from MOBI and AZW3 ebook formats.
Public API changes
FileType public class was updated with changes as follows:
Usage
The following example shows how to extract a text from MOBI ebook:
// Create an instance of Parser class
using(Parser parser = new Parser("book.mobi"))
{
// Extract a text into the reader
using(TextReader reader = parser.GetText())
{
// Print a text from the ebook
// If text extraction isn't supported, a reader is null
Console.WriteLine(reader == null ? "Text extraction isn't supported" : reader.ReadToEnd());
}
}