Value from Aspose.Pdf.Color.FromRgb does not work with a Color property of an annotation

Hello,

Could you help with one problem: we are using "Aspose.Pdf.Color.FromRgb" method to get color and set it into annotation. But it is not working.
We get right Aspose.Pdf.Color object with right value, but after setting that data to the "Color" property of an annotation we get nothing at all. Property value doesn't change.

It works fine if we use "Color.Blue" or other property to set.

Example of code we use to get color:

Color.FromRgb(System.Drawing.Color.FromArgb(16711680));

That should be equal "Color.Red;".

But "Color.Red" works and "Color.FromRgb(System.Drawing.Color.FromArgb(16711680))" not.

Aspose.Pdf vr. 9.4.0.0

Best regards.

Hi there,

We are sorry for the inconvenience caused. While testing the scenario with the latest version of Aspose.Pdf for .NET 9.4.0, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWNET-37241 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

Hi there,


Thanks for your patience. Please note Color property for FreeTextAnnotation respects alpha value.
So correct code for color setting of FreeTextAnnotation is as the following. Hopefully it will help you to resolve the issue.

freetextAnnotation.Color =
Aspose.Pdf.Color.FromRgb(System.Drawing.Color.FromArgb(255, 255, 0, 0));<o:p></o:p>


Please feel free to contact us for any further assistance.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-37241) have been fixed in Aspose.Pdf for .NET 9.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.