Support of .NET Standard 2.0 in Aspose.Pdf for .NET and new Features

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

We are pleased to announce new December release Aspose.Pdf for .NET 17.12. This month’s release of Aspose.Pdf for .NET contains new useful features, enhancements and bug fixes. In case you are planning to upgrade your existing version of the API to the latest version, we would strongly recommend you to please check release notes of Aspose.Pdf for .NET 17.12 for an overview of API changes and improvements.

Implemented Aspose.Pdf for .NET Standard 2.0

Starting from Aspose.Pdf for .NET 17.12, this API includes .NET Standard 2.0 version. Our product team has ported complete functionality of regular .NET version of Aspose.Pdf, into .NET Standard 2.0 version. Since this is the first version with .NET Standard 2.0 support, so in the features related to graphics, there may be some problems and our product team has been working hard to fix them.

Add Text with Gradient Fill

We have implemented support of gradient fill for text adding scenarios. Setting gradient fill to TextFragment/TextSegment’s foreground color is going to be operable in Aspose.Pdf for .NET 17.12. Following code snippet can be used to set foreground color with gradient fill:

// Create new color with pattern colorspace
textFragment.TextState.ForegroundColor = new Aspose.Pdf.Color
// Set PatternColorSpace to linear gradient with
// red starting color and blue ending color
PatternColorSpace =
new GradientAxialShading(Color.Red, Color.Blue)

Hide Page Numbers in TOC

While adding TOC (Table of Contents) in the PDF documents, usually headings in the list, are showed with page numbers where they navigate you after clicking them. Sometimes, you want to display only text without page numbers in the table of contents. In Aspose.Pdf for .NET 17.12 release, you will be able to hide page numbers in table of contents by using new boolean property IsShowPageNumbers of TocInfo class.

Use SVG Image in Stamp Annotation

In the earlier version(s) of Aspose.Pdf for .NET, StampAnnotation class supported JPEG and PNG images for stamps – whereas in new 17.12 version of the API, it is feasible to use SVG image in Stamp Annotation:

Document doc = new Document();
Aspose.Pdf.Annotations.StampAnnotation stamp =
new Aspose.Pdf.Annotations.StampAnnotation(doc.Pages[1],
new Aspose.Pdf.Rectangle(10,10,100,100));
stamp.Image =
new FileStream("c:/pdftest/CHRISTMAS_004.svg", FileMode.Open);

Miscellaneous Fixes

Apart from the above mentioned enhancements and features, we have also provided fixes against many issues. In order to check the complete list of issues which have been fixed in this release of Aspose.Pdf for .NET, please check Release Notes section of Aspose.Pdf for .NET 17.12.

As it is always recommended to use latest release of our API’s, so we suggest you to please download the latest release Aspose.Pdf for .NET 17.12 and check following resources which will help you working with API:

To keep up with our news, you can follow us on Twitter or follow our Facebook page.

Leave a Reply