Class FieldPositioningEvents

java.lang.Object
com.itextpdf.text.pdf.PdfPageEventHelper
com.itextpdf.text.pdf.events.FieldPositioningEvents
All Implemented Interfaces:
PdfPageEvent, PdfPCellEvent

public class FieldPositioningEvents extends PdfPageEventHelper implements PdfPCellEvent
Class that can be used to position AcroForm fields.
  • Field Details

    • genericChunkFields

      protected HashMap<String,PdfFormField> genericChunkFields
      Keeps a map with fields that are to be positioned in inGenericTag.
    • cellField

      protected PdfFormField cellField
      Keeps the form field that is to be positioned in a cellLayout event.
    • fieldWriter

      protected PdfWriter fieldWriter
      The PdfWriter to use when a field has to added in a cell event.
    • parent

      protected PdfFormField parent
      The PdfFormField that is the parent of the field added in a cell event.
    • padding

      public float padding
      Some extra padding that will be taken into account when defining the widget.
  • Constructor Details

    • FieldPositioningEvents

      public FieldPositioningEvents()
      Creates a new event. This constructor will be used if you need to position fields with Chunk objects.
    • FieldPositioningEvents

      public FieldPositioningEvents(PdfWriter writer, PdfFormField field)
      Creates a new event. This constructor will be used if you need to position fields with a Cell Event.
    • FieldPositioningEvents

      public FieldPositioningEvents(PdfFormField parent, PdfFormField field)
      Creates a new event. This constructor will be used if you need to position fields with a Cell Event.
    • FieldPositioningEvents

      public FieldPositioningEvents(PdfWriter writer, String text) throws IOException, DocumentException
      Creates a new event. This constructor will be used if you need to position fields with a Cell Event.
      Throws:
      DocumentException
      IOException
    • FieldPositioningEvents

      public FieldPositioningEvents(PdfWriter writer, PdfFormField parent, String text) throws IOException, DocumentException
      Creates a new event. This constructor will be used if you need to position fields with a Cell Event.
      Throws:
      DocumentException
      IOException
  • Method Details