APACHE POI getting exact font color from excel in Java
===

In excel sheet how to get the exact Font color value using Apache POI in java. I tried to get font color by using 

org.apache.poi.ss.usermodel.Font f = book.getFontAt(style.getFontIndex());
short clrIdx = f.getColor(); 

but it is not giving the exact color index. After getting this color value i have to apply the same color in the PDFtable. Here, I am doing the excel to pdf conversion by reading each excel cell format and creating the same using pdf in iText.

Please help me!!

Thanks in advance.