Please choose a menu option
Visit the IDRsolutions WebSite

Custom Interfaces

The commercial version of JPedal includes a method to allow users to replace certain aspects of the program with their own functionality for specialised situations. JPedal provides a method call and a set of interfaces to achieve this.

How it works

The addExternalHandler(Object newHandler,int type) method in PdfDecoder allows the user to pass in their own object which implements a predefined interface.

If this object is set, it will be called internally by JPedal at specific points allowing the object to replace or augment certain functions.

Some values are used internally and not listed here. Recommended values are:

Important note

This feature is provided as a service for commercial clients. It is not part of the official api and subject to change. It should only be used in consultation with IDRsolutions Ltd

Related items

Draw additional objects explains how to draw your own objects ontop of the PDF display (ie special Annotations, copyright notice) using a Custom interface.
Implementing custom actions explains how to add your own custom actions to the PDF Viewer.

 

Return to main PDF support section

Click here for the main PDF support area with lots of java examples, PDF tutorials and useful information to get the most out of the JPedal PDF library

 


PDF viewer