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

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

Introduction

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

Prototype

public boolean setListSelection(String name, String[] value) throws IOException, DocumentException 

Source Link

Document

Sets different values in a list selection.

Usage

From source file:questions.forms.MultipleChoice2.java

public static void main(final String[] args) throws IOException, DocumentException {
    createPdf();/*from  w w w.j  ava2 s.  c o m*/
    PdfReader reader = new PdfReader(RESULT);
    PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(RESULT2));
    AcroFields form = stamper.getAcroFields();
    form.setListSelection("iText", new String[] { "C", "PHP" });
    stamper.close();
}