Font Substitution in Word Documents and Inline Syntax Error Messages for LINQ Reporting Engine in C#

Aspose.Words for .NET logo

We 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.

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 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.

Improved Warnings for Image Processing Issues When Saving to PDF

Previously there was one generic warning with text “Unsupported image format.”. Now there is a specific warning for OutOfMemoryException with the text “Not enough memory to load the image.” and a generic warning with the 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.

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:

  1. Home page of .NET API.
  2. Install using NuGet Package
  3. Documentation – up-to-date documentation containing Programmer’s Guide, Knowledge Base and much more.
  4. API Reference Guide – detailing the publicly exposed classes, methods, properties, constants & interfaces.
  5. Aspose.Words Product Family Forum – post your technical questions and queries, or any other problem you are facing while working with Aspose.Words APIs.
  6. 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.
  7. Examples – we have published our code examples on the social coding website Anyone could explore the code examples for learning purposes.