PDF Library for .NET Standard 2.0

We are pleased to announce the new release of Aspose.PDF for .NET 17.12. The latest release has the compatibility to work with .NET Standard 2.0. So you can now create, edit, manipulate and convert PDF documents in .NET Standard 2.0 or .NET Core 2.0 applications. 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.

Support of .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 in PDF

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 in PDF

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 PDF

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 that have been fixed in this release of Aspose.PDF for .NET, please check the Release Notes section of Aspose.PDF for .NET 17.12.

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