Link
Skip to main content

Add Custom Form Components

JPedal has a factory class that produces swing components to display form components. This factory can be replaced with your own implementation to support other GUI widget toolkits.

Creating your own GUI components for PDF forms

A Custom Component Factory can be created by implementing the form factory interface. By implementing this interface you can create components to display the forms using another widget toolkit of your choice. The factory has a series of methods that take in a FormObject and returns an Object. You will need to read the values from the FormObject and set up your own GUI component.

Using a Custom Form Factory

To use a custom form factory you will need to add it using PdfDecoder.isExternalHandler(Object newHandler, int type). The value newHandler should be an object implementing the FormFactory interface. The value type should be the value Options.FormFactory


Get started with JPedal in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about JPedal

Start Your Free Trial


Customer Downloads

Select Download