Example usage for com.lowagie.text.pdf RadioCheckField TYPE_CROSS

List of usage examples for com.lowagie.text.pdf RadioCheckField TYPE_CROSS

Introduction

In this page you can find the example usage for com.lowagie.text.pdf RadioCheckField TYPE_CROSS.

Prototype

int TYPE_CROSS

To view the source code for com.lowagie.text.pdf RadioCheckField TYPE_CROSS.

Click Source Link

Document

A field with the symbol cross

Usage

From source file:com.geek.tutorial.itext.acroform.RadioCheckBoxForm.java

License:Open Source License

private static void addCheckbox(PdfWriter writer, Rectangle rect, String name)
        throws IOException, DocumentException {
    RadioCheckField check = new RadioCheckField(writer, rect, name, "On");
    check.setCheckType(RadioCheckField.TYPE_CROSS);
    check.setBorderColor(Color.BLACK);
    writer.addAnnotation(check.getCheckField());
}