Example usage for com.lowagie.text.pdf AcroFields getListSelection

List of usage examples for com.lowagie.text.pdf AcroFields getListSelection

Introduction

In this page you can find the example usage for com.lowagie.text.pdf AcroFields getListSelection.

Prototype

public String[] getListSelection(String name) 

Source Link

Document

Gets the field values of a Choice field.

Usage

From source file:questions.forms.MultipleChoice.java

public static void readList() throws IOException {
    PdfReader reader = new PdfReader(RESULT);
    AcroFields form = reader.getAcroFields();
    String[] selection = form.getListSelection("iText");
    for (int i = 0; i < selection.length; i++) {
        System.out.println(selection[i]);
    }/*  www.  j  a v a 2 s .  c  o  m*/
}