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

Free Support Forum - aspose.com

Not able to set rgb color as text foreground color

Hello,

We are making an Android application that generates the pdf using some data.
We have used the Aspose.Pdf for Android 1.6.0 in our application.

We are trying to implement differnet RGB color to the text. But we are not able to do that. As we have implemented 'setForegroundColor' as shown below it only accepts awt color but actually we want rgb color for the same. Can you please check and let us know what we are doing wrong in this approach.

The code which we have done for this is as below:


TextState m_attachmentTextState = new TextState();
m_attachmentTextState.setFontSize(12.0f);
m_attachmentTextState.setForegroundColor(com.aspose.java.awt.Color.GRAY);
m_attachmentTextState.setFont(m_font);
m_attachmentTextState.setHorizontalAlignment(HorizontalAlignment.Center);

Please let us know what we are doing wrong?

Hi there,


Thanks for your inquiry. I am afraid currently setForeGroundColor property accepts com.aspose.java.awt.Color. However we have logged a ticket PDFANDROID-390 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress within this forum thread.

We are sorry for the inconvenience caused.

Best Regards,

If possible can you please send me ETA for this issue . We need to implement this feature in our PDF .



Thanks

Hi,


As we recently have been able to notice this issue, and until or unless we have investigated and have figured out
the actual reasons of this problem, we might not be able to share any timelines
by which this problem will be resolved.

However, as soon as we have made some significant progress towards the resolution of this issue, we would be more than happy to update you with the status of correction. Please be patient and spare us little time. Your patience and comprehension is greatly appreciated in this regard.

The issues you have found earlier (filed as PDFANDROID-390) have been fixed in Aspose.Pdf for Android 16.12.0.


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