Example usage for com.lowagie.text.pdf BaseField setTextColor

List of usage examples for com.lowagie.text.pdf BaseField setTextColor

Introduction

In this page you can find the example usage for com.lowagie.text.pdf BaseField setTextColor.

Prototype

public void setTextColor(Color textColor) 

Source Link

Document

Sets the text color.

Usage

From source file:buckley.compile.ColorModifier.java

License:Apache License

public void modify(BaseField iTextField, Field field, Document document) {
    Color color = Color.black;
    if (field.getColor() != null) {
        color = field.getColor();//  w w  w . ja v a2s.com
    }
    iTextField.setTextColor(color);
}