org.jpedal.objects
Class PdfFormData

java.lang.Object
  extended by org.jpedal.objects.PdfFormData

public class PdfFormData
extends java.lang.Object

Added as a repository to store form data in so that it can be reused. Data stored in a List - each element is a Map


Field Summary
static int XFA_CONFIG
           
static int XFA_DATASET
           
static int XFA_LOCALESET
           
static int XFA_PDFSECURITY
           
static int XFA_POSTAMBLE
           
static int XFA_PREAMBLE
           
static int XFA_TEMPLATE
           
static int XFA_XFDF
           
static int XFA_XMPMETA
           
 
Constructor Summary
PdfFormData(boolean isDemo)
           
 
Method Summary
 void addFormElement(java.util.Map currentForm)
          Used internally to add a form object as it is extracted from the pdf stream.
 java.util.List getFormData()
          get all data as list of items with each Form item stored in a Map
 int getTotalCount()
          total number of Form objects to be displayed.
 org.w3c.dom.Document getXFAFormData(int type)
          (NOT LIVE)
 boolean hasXFAFormData()
          flag to show if XFA (not yet implemented)
 void incrementCount(int kidCount)
          increase number of forms items.
 void setXFAFormData(int type, byte[] xmlString)
          (NOT LIVE)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XFA_TEMPLATE

public static final int XFA_TEMPLATE
See Also:
Constant Field Values

XFA_DATASET

public static final int XFA_DATASET
See Also:
Constant Field Values

XFA_CONFIG

public static final int XFA_CONFIG
See Also:
Constant Field Values

XFA_PREAMBLE

public static final int XFA_PREAMBLE
See Also:
Constant Field Values

XFA_LOCALESET

public static final int XFA_LOCALESET
See Also:
Constant Field Values

XFA_PDFSECURITY

public static final int XFA_PDFSECURITY
See Also:
Constant Field Values

XFA_XMPMETA

public static final int XFA_XMPMETA
See Also:
Constant Field Values

XFA_XFDF

public static final int XFA_XFDF
See Also:
Constant Field Values

XFA_POSTAMBLE

public static final int XFA_POSTAMBLE
See Also:
Constant Field Values
Constructor Detail

PdfFormData

public PdfFormData(boolean isDemo)
Method Detail

hasXFAFormData

public boolean hasXFAFormData()
flag to show if XFA (not yet implemented)


getXFAFormData

public org.w3c.dom.Document getXFAFormData(int type)
                                    throws PdfException
(NOT LIVE)

Throws:
PdfException

setXFAFormData

public void setXFAFormData(int type,
                           byte[] xmlString)
(NOT LIVE)

Throws:
PdfException

addFormElement

public void addFormElement(java.util.Map currentForm)

Used internally to add a form object as it is extracted from the pdf stream. Should not need to be called in normal usage.


getFormData

public final java.util.List getFormData()
get all data as list of items with each Form item stored in a Map


incrementCount

public void incrementCount(int kidCount)
increase number of forms items. Some forms items can contain several objects (ie ButtonGroup)


getTotalCount

public int getTotalCount()
total number of Form objects to be displayed. This may not be the same as the number of Form objects as 1 button group could contain 6 buttons.