Tahir Manzoor April 12, 20170 Comments

Support for Custom Formatting of Field Result, Set Horizontal and Vertical Resolution of Output Image and Many More with Aspose.Words 17.4

Support for Custom Formatting of Field Result, Set Horizontal and Vertical Resolution of Output Image and Many More with Aspose.Words 17.4

April 12, 2017
Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.Words for .NET logoWe are pleased to announce our next version of Aspose.Words 17.4. This month’s release contains over 80 useful new features, enhancements and bug fixes. You can download the latest releases of Aspose.Words from the following links:

Please see the release notes for more detail. 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.

Here is a look at just a few of the biggest features and API changes in this month’s release.

  • CompareOptions class introduced to allow customer specify comparison settings.
  • Custom Xml Data Properties is now supported for RTF format.
  • Implemented support for baseline alignment in Asian text.
  • Improved table split for vertically merged cells in combination with at-least height.
  • Improved table grid calculation for horizontally merged cells.
  • Improved BalanceSingleByteDoubleByteWidth handling.
  • The horizontal and vertical resolution of output images can now be specified separately (through ImageSaveOptions.VerticalResolution and ImageSaveOptions.HorizontalResolution).
  • Underline, strikethrough, text borders and effects are now taken into account wile rendering OfficeMath equation text.
  • A substitution of fonts with the same name but with different suffixes now generates a proper warning.
  • Textboxes with automatic fit is now rendered correctly inside the group shapes.
  • Corrupted texture images do not stop the rendering procedure with an exception, a warning is sent instead now.
  • DrawingML Charts rendering improved (rotated and scaled horizontal axis labels).

Added an Interface to Flexibly Format Field Result

We have implemented a more generic and flexible solution to format field result. We have added an interface IFieldResultFormatter in Aspose.Words 17.4 allowing to implement custom formatting of field’s result. Now, you can apply formatting to numeric and date/time field result. Please read the following article for more detail:
How to Apply Custom Formatting to Field Result

Added Feature to Set Horizontal and Vertical Resolution of Output Image

Previously it was one property ImageSaveOptions.Resolution that set both vertical and horizontal resolution to the same values. We have added new public properties HorizontalResolution and VerticalResolution in ImageSaveOptions class to set horizontal and vertical resolution of output image. Please refer to the following article:
How to Save Document’s Page to Image with Horizontal and Vertical Resolution

/// <summary>
/// Gets or sets the horizontal resolution for the generated images, in dots per inch.
/// </summary>
/// <remarks>
/// <para>This property has effect only when saving to raster image formats.</para>
/// <p>The default value is 96.</p>
/// </remarks>
public float HorizontalResolution {get;set;}
 
 
/// <summary>
/// Gets or sets the vertical resolution for the generated images, in dots per inch.
/// </summary>
/// <remarks>
/// <para>This property has effect only when saving to raster image formats.</para>
/// <p>The default value is 96.</p>
/// </remarks>
public float VerticalResolution {get;set;}

Please note that ImageSaveOptions.Resolution property became write-only.

/// <summary>
/// Sets both horizontal and vertical resolution for the generated images, in dots per inch.
/// </summary>
/// <remarks>
/// <para>This property has effect only when saving to raster image formats.</para>
/// </remarks>
public float Resolution {set;}

Added Feature to Ignore Document formatting and Header Footer Content during Document Comparison

We have introduced new class CompareOptions in Aspose.Words 17.4 to compare two documents with advanced options. Now, you can ignore document formatting and header footer content during document comparison. Please check following article for more detail:
Compare Word Documents and Ignore Document Formatting

Aspose.Words for .NET Resources

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

 

Leave a comment

Posted inAspose.Words Product Family
 

Related Articles