GroupDocs.Editor for .NET 21.6 Release Notes
GroupDocs.Editor for .NET version 21.6 presents several small but useful new features, several improvements and a lot of different bugfixes; all of these are described below. As in most of previous releases, these new features, which touch a public API, do not break a backward compatibility.
Version 21.6 of GroupDocs.Editor contains three new features, which are described below
New Mime property in IDocumentFormat inheritors
Now a public interface Formats.IDocumentFormat contains a new public property:
All implementing types — WordProcessingFormats, SpreadsheetFormats, PresentationFormats, TextualFormats, and EBookFormats, — also contain this property. With this property users can easily obtain a MIME-code for a particular format. This may be very useful in web-applications, where it is required to write a MIME-code to the response along with document content.
New XmlContent property in SvgImage class
SVG image is in fact a text document in XML format. Before this moment it was not possible to obtain this XML content, because a TextContent property of GroupDocs.Editor.HtmlCss.Resources.Images.Vector.SvgImage class returns a base64-encoded content. Now we introduced a new property XmlContent, which returns exactly a described XML content of a particular SVG image.
Extended conversion methods for all vector images
Starting from version 21.6 the VectorImageResourceBase class has a new abstract method
void SaveToPng(System.IO.Stream outputPngContent), so now all implementing types (SvgImage, WmfImage and EmfImage) support conversion and saving to the PNG raster format.
Also MetaImageBase abstract class has a new abstract method
void SaveToSvg(System.IO.Stream outputSvgContent), which allows to save WMF or EMF to SVG. This is very useful, because WMF and EMF formats are commonly used in WordProcessing documents, but are not supported by the browsers; on the other hand, only SVG is supported in the Web.
GroupDocs.Editor for .NET version 21.6 contains several important improvements, which may be divided onto two parts: improvements related to SVG and to the Presentation module.
Now Presentation module preserves and supports some basic text formatting features when converrting document to and from HTML. This includes:
- Bold text
- Italic text
- Underline text
- Strikethrough text
Now, if some slide contains such text formatting, this formatting will be present in HTML and then in the resultant Presentation document.
Better SVG support
First of all, starting from version 21.6, HTML/CSS module supports an SVG content, inlined inside HTML markup. This means that if given HTML document contains SVG images, which are inlined directly inside HTML using SVG elements, GroupDocs.Editor will correctly process such markup with SVG images without throwing an exception.
Another improvement is related to the serialization: now, when EditableDocument.GetEmbeddedHtml() method is invoked, all SVG files will not be encoded to the base64 and placed inside the values of “src” attributes of corresponding IMG elements, but rather will be stored in their native XML-compliant form, with SVG elements and so on.
GroupDocs.Editor version 21.3 contains big amount of bugfixes and performance improvements, which address different issues in different modules of GroupDocs.Editor, including WordProcessing, Spreadsheet, Presentation, and HTML processing.
Full List of Issues Covering all Changes in this Release
|Add new property with MIME code for all supportable document formats
|Add ability to save SVG as PNG and improve public API in vector images
|Add new public property to obtain XML-content of SVG image
|Preserve most common text formatting features during roundtrip in Presentation module
|SVG is not supported if is inlined into HTML markup as HTML element
|Implement SVG inlining instead of base64 embedding
|Images are not correctly transfered during conversion Markdown to Docx
|HTML-markup loose styles after file open and saving without changes
|OutOfMemoryException while converting specific Cells file to HTML
|Presentation: convert html to presentation without stylesheet
|Exception while import Presentation with missing load options
|Exception with message Font name cannot be NULL, empty or whitespaces\r\nParameter name: fontName during call editor.Edit() for RTF-file
|Unknown field is improperly processed
|Editor hang on PowerPoint files
|Image is not JPEG exception in Presentation
|Fix bug in markup parser
Public API and Backward Incompatible Changes
New public methods:
- void VectorImageResourceBase.SaveToPng(System.IO.Stream outputPngContent)
- void SvgImage.SaveToPng(System.IO.Stream outputPngContent)
- void WmfImage.SaveToPng(System.IO.Stream outputPngContent)
- void EmfImage.SaveToPng(System.IO.Stream outputPngContent)
- void MetaImageBase.SaveToSvg(System.IO.Stream outputSvgContent)
- void WmfImage.SaveToSvg(System.IO.Stream outputSvgContent)
- void EmfImage.SaveToSvg(System.IO.Stream outputSvgContent)
New public properties:
- string Formats.IDocumentFormat.Mime
- string Formats.WordProcessingFormats.Mime
- string Formats.SpreadsheetFormats.Mime
- string Formats.PresentationFormats.Mime
- string Formats.TextualFormats.Mime
- string Formats.EBookFormats.Mime
- string SvgImage.XmlContent