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


Why JPedal?

  • Actively developed commercial library with full support and no third party dependencies.
  • Process PDF files up to 3x faster than alternative Java PDF libraries.
  • Simple licensing options and source code access for OEM users.

Learn more about JPedal

Start Your Free Trial


Customer Downloads

Select Download