Beta version of HTMLTextArea and CMYK colors

Beta version of HTMLTextArea and CMYK colors

Forum member · Jun 6, 2006
Hi, How can I specify the text color as CMYK in the new beta version of PDF generators HtmlTextArea ? /tuomo

Re: Beta version of HTMLTextArea and CMYK colors

Support · Jun 6, 2006
Hello Tuomo, You can specify the color of the text to be CMYK color by setting the color attribute of the font tag to use CMYK color as below: String strHtmlText = "<font color='rgb( 0.1, 0.8, 0.1 )'>World</font>"; FormattedTextArea area = new FormattedTextArea(strHtmlText, 100, 100, 215, 60, FontFamily.getHelvetica(), 9, false); Thanks, ceTe Software Support Team

Re: Beta version of HTMLTextArea and CMYK colors

Forum member · Jun 7, 2006
Does this mean that the library will automatically do the RGB->CMYK conversion ? If so I think in our case that will not be acceptable because the PDF - files generated by our system will need to be printable and the CMYK colors have to be exact. /tuomo

Re: Beta version of HTMLTextArea and CMYK colors

Support · Jun 7, 2006
Hello Tuomo, Our product does not automatically do the RGB->CMYK color conversion. If you specify the font color using CMYK color, it will output the text in CMYK color only in the final output PDF file. Thanks, ceTe Software Support Team

Re: Beta version of HTMLTextArea and CMYK colors

Forum member · Jun 8, 2006
Oh.. Well then I guess I'm not understanding something correctly.. In your example your specifying the color as rgb( 0.1, 0.8, 0.1 ), isn't that RGB ? I guess it should be something like cmyk(0.1,0.8,0.1,0,2) ? Or did I completely miss the point ? /tuomo

Re: Beta version of HTMLTextArea and CMYK colors

Support · Jun 8, 2006
Hello Tuomo, You are correct. I used RGB color in the example in place of using CMYK. I am sorry for the confusion. The example should have been using the CMYK color. Following is the modified example: String strHtmlText = "<font color= cmyk(0.1,0.8,0.1,0,2)'>World</font>"; FormattedTextArea area = new FormattedTextArea(strHtmlText, 100, 100, 215, 60, FontFamily.getHelvetica(), 9, false); Thanks, ceTe Software Support Team