Gradient color fill support in Aspose.Pdf for .NET 12.0.0

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

We are pleased to announce the release of Aspose.Pdf for .NET 12.0.0. This release includes number of improvements along with a new Gradient color fill feature. Now we can fill Graph objects with gradient color with the release of this version. We have improved TableAbsorber class along with other bug fixes, reported in earlier releases, that improved the quality of Aspose.Pdf for .NET API. Please check the detailed release notes of Aspose.Pdf for .NET 12.0.0, in order to get an idea about the new features and improvements made in this release of Aspose.Pdf for .NET. The following sections describe some details regarding these newly added features/enhancements.

 

Features

Gradient color fill: In this release we have introduce gradient color fill feature. We can fill Graph objects with gradient colors using PatterColorSpace and GradientAxialShading objects as following:

// Create Document instance

Document doc = new Document();

// Add page to pages collection of PDF file

Aspose.Pdf.Page page = doc.Pages.Add();

// Create Graph instance

Aspose.Pdf.Drawing.Graph graph = new Aspose.Pdf.Drawing.Graph(300, 300);

// Add graph object to paragraphs collection of page instance

page.Paragraphs.Add(graph);

// Create Rectangle instance

Aspose.Pdf.Drawing.Rectangle rect = new Aspose.Pdf.Drawing.Rectangle(0, 0, 300, 300);

// Add rectangle object to shapes collection of Graph object

graph.Shapes.Add(rect);

// Specify Gradient fill color for Graph object

rect.GraphInfo.FillColor = new Aspose.Pdf.Color

{

PatternColorSpace = new Aspose.Pdf.Drawing.GradientAxialShading(Aspose.Pdf.Color.Red, Aspose.Pdf.Color.Blue) { Start = new Aspose.Pdf.Point(0, 0), End = new Aspose.Pdf.Point(300, 300) }

};

// Save PDF file

doc.Save("GradiantFill.PDF");

PDF to DOCX conversion : Some of the customers are complaining the rendering quality of contents of resultant DOC(X). So in this release we have set default ImageResolution to 300 dpi. It will increase the resultant file size, as rendering quality is more important than file size for the customers. We can change the resolution as per our requirements.

Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions();

saveOptions.Format = Aspose.Pdf.DocSaveOptions.DocFormat.Doc;

saveOptions.Mode = Aspose.Pdf.DocSaveOptions.RecognitionMode.Flow;

saveOptions.RecognizeBullets = (true);

saveOptions.ImageResolutionX = 150;

saveOptions.ImageResolutionY = 150;

Improvements

Working with tables in existing PDF documents: We have improved TableAbsorber object, it improved the Table manipulation feature of Aspose.Pdf for .NET.

PDF to PDFA conversion: We have fixed number of issues related to PDF to PDFA conversion in this release. It added a great value to stability and reliability of the API.

In addition to above stated improvements, this version also includes some other important bug fixes as well. There have been specific improvements regarding PDF to HTML, PDF to Images and PDF to XPS. Please check release notes of Aspose.Pdf for .NET 12.0.0 for complete list of bug fixed.

 

Public API Changes

If you are planning to upgrade the API from any previous version, we strongly suggest you to check the Public API Changes section of current release and other intermediate releases, to know what has been changed since your current revision of the API.

 

Aspose.Pdf for .NET Resources

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


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

One Response to Gradient color fill support in Aspose.Pdf for .NET 12.0.0

  1. Pingback: Gradient Color Fill & Improved PDF to PDFA ...

Leave a Reply