Tahir Manzoor February 20, 20190 Comments

Improved Font Substitution Process, Supported Inline Syntax Error Messages, and Improved Warnings for Image Processing

Improved Font Substitution Process, Supported Inline Syntax Error Messages, and Improved Warnings for Image Processing

February 20, 2019
Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Words for .NET logoWe are pleased to announce our next version Aspose.Words for .NET 19.2. This month’s release contains over 69 useful new features, enhancements and bug fixes. Please check the release notes to get an idea about all new features, enhancements and fixes made in this release. If you are planning to upgrade from older version of Aspose.Words to the current version, we would strongly suggest you to check the Public API and Backward Incompatible Changes section to know what APIs are changed so far.

 

Improved Font Substitution Process When Rendering Documents

Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (PDF, XPS or TIFF). However, there are situations when the exact font cannot be found and Aspose.Words must substitute a similar font instead. We have improved the font substitution process in this release of Aspose.Words. Please read the complete detail from following article.

Font Availability and Substitution

Supported Inline Syntax Error Messages into Template for LINQ Reporting Engine

By default, LINQ Reporting Engine throws an exception when encounters a template syntax error. To make things easier, the engine supports the ReportBuildOptions.InlineErrorMessages option that enables inline syntax error message into a template document at an exact position where the error occurs during runtime. For more detail, please read the following article.

Inline Syntax Error Messages into Templates

Improved Warnings for Image Processing Issues When Saving to PDF

Previously there was one generic warning with text “Unsupported image format.”. Now there are a specific warning for OutOfMemoryException with text “Not enough memory to load the image.” and a generic warning with text “Image cannot be processed. Possibly unsupported image format.”.

Removed Deprecated Public Property TxtSaveOptions.ExportHeadersFooters

We have removed deprecated public property TxtSaveOptions.ExportHeadersFooters from Aspose.Words API. Please use TxtSaveOptions.ExportHeadersFootersMode property instead. Please read the following article.

Export Header and Footer in Output TXT

Other Improvements

There are 69 improvements and fixes in this regular monthly release. The most notable are:

  • Supported inline syntax error messages into templates instead of exception throwing for LINQ Reporting Engine.
  • Improved font fetching and substitution mechanism with corresponding API changes.
  • Improved warnings for image processing issues when rendering to PDF.
  • Improved font fallback rendering for full-width character Unicode ranges.
  • Metafiles with “HeaderPlaceable” structure is now rendering regardless of structure checksum. (MS Word behavior).
  • The width of the DrawingML outline is now normalized if it is below the minimum value while rendering. (MS Word behavior).
  • Fixed a bug with incorrect calculation of DrawingML TextBox shape bounds.
  • Fixed a bug with the calculation of the shape boundaries if the document contains the attribute.ShapeLayoutLikeWW8 (the behavior of MS WORD 97 should be emulated).
  • Fixed a bug that caused an exception when rendering ultra-small text boxes in GDI+.
  • Fixed a bug with the distorted filling of the DrawingML shape outline when rendering grouped shapes.
  • Fixed a bug causing creation of blank images with zero size while rendering into HTML.
  • Improved ordering of number in RTL list labels.
  • Improved check box size calculation when active form fields are exported to PDF.
  • Fixed issue when document has “printer metrics” enabled and Windows has no printer driver installed.
  • Fixed hang when table cell is broken across pages when there is a floating shape anchor in it.
  • Fixed issue when text which has borders is wrapped around a shape and does not fit.

Aspose.Words for .NET Resources

The following resources will help you work with Aspose.Words for .NET:

    • Home page of .NET API.
    • Install using NuGet Package
    • Documentation – up-to-date documentation containing Programmer’s Guide, Knowledge Base and much more.
    • API Reference Guide – detailing the publicly exposed classes, methods, properties, constants & interfaces.
    • Aspose.Words Product Family Forum – post your technical questions and queries, or any other problem you are facing while working with Aspose.Words APIs.
    • Enable Blog Subscription – do not limit yourself, you can keep yourself updated with the latest news on Aspose.Words APIs, new features, fixes and other API related topics by subscribing to Aspose.Words blog.
    • Examples – we have published our code examples on the social coding website GitHub.com. Anyone could explore the code examples for learning purposes.

Leave a comment

Posted inAspose.Words Product Family
 

Related Articles