Aspose.Pdf .NET 18.6.0 and Operator API issue

Hi,
Recently we have got latest update for Aspose.Pdf .NET 18.6.0 and unfortunately have noticed a bunch of errors in code that worked and compiled perfectly with previous versions of Aspose.PDF up to 18.5.0.

error CS0426: The type name ‘SetLineWidth’ does not exist in the type ‘Operator’
error CS0426: The type name ‘SetRGBColorStroke’ does not exist in the type ‘Operator’
error CS0426: The type name ‘SetRGBColor’ does not exist in the type ‘Operator’
error CS0426: The type name ‘SetLineWidth’ does not exist in the type ‘Operator’
error CS0426: The type name ‘MoveTo’ does not exist in the type ‘Operator’
error CS0426: The type name ‘LineTo’ does not exist in the type ‘Operator’
error CS0426: The type name ‘FillStroke’ does not exist in the type ‘Operator’

We used that API for drawing annotations in PDF documents, e.g.:
annotation.Appearance[“N”].Contents.Add(new Operator.SetLineWidth(1.5));
annotation.Appearance[“N”].Contents.Add(new Operator.SetRGBColorStroke(color));
annotation.Appearance[“N”].Contents.Add(new Operator.SetRGBColor(color));

And it seems that now this API was eliminated. So can you please give me some workaround regarding this problem? Are there any other ways to to replace Operator calls in such case?

@licenses

Thank you for contacting support.

We would like to share with you that Release Notes of Aspose.PDF for .NET 18.6 mention that, All descendants of Aspose.Pdf.Operator were moved into namespace Aspose.Pdf.Operators. Therefore, please try using below code snippet in your environment and you will not face the problem anymore.

annotation.Appearance["N"].Contents.Add(new Aspose.Pdf.Operators.SetLineWidth(1.5));
annotation.Appearance["N"].Contents.Add(new Aspose.Pdf.Operators.SetRGBColorStroke(color));
annotation.Appearance["N"].Contents.Add(new Aspose.Pdf.Operators.SetRGBColor(color));

We hope this will be helpful. Please feel free to contact us if you need any further assistance.