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?