We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Pdf Background Foreground color

I’m trying to use Color to hilghlight a text to add in a pdf.

textFragment.TextState.BackgroundColor = Aspose.Pdf.Color.FromRgb(System.Drawing.Color.White);
I Have this error : "Connot implicity convert type ‘Aspose.Pdf.Color’ to 'System.Drawing.Color’
Thanks for your help.
Best regards,

Hi Matthieu,

Thanks for your inquiry. I am afraid I am unable to notice the reported error in Aspose.Pdf for .NET 9.1.0. Can you please confirm your API version? So we will investigate the issue and provide you more information.

We are sorry for the inconvenience caused.

Best Regards,