org.pdfbox.pdmodel.interactive.form
Class PDFieldFactory

java.lang.Object
  extended byorg.pdfbox.pdmodel.interactive.form.PDFieldFactory

public class PDFieldFactory
extends Object

This is the Factory for creating and returning the correct field elements.

Version:
$Revision: 1.8 $
Author:
sug

Method Summary
static PDField createField(PDAcroForm acroForm, COSDictionary field)
          This method creates a COSField subclass from the given field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createField

public static PDField createField(PDAcroForm acroForm,
                                  COSDictionary field)
                           throws IOException
This method creates a COSField subclass from the given field. The field is a PDF Dictionary object that must represent a field element. - othewise null is returned

Parameters:
acroForm - The form that the field will be part of.
field - The dictionary representing a field element
Returns:
a subclass to COSField according to the kind of field passed to createField
Throws:
IOException - If there is an error determining the field type.