Please choose a menu option

RSS feed? News:

04 Sep 10 PDF blog Our Java PDF blog has been updated with previous articles, categories and search functions. There's a lot of information there.Try it...

19 Aug 10 Version 4.36 build 60 released JPedal can now read PDF's aloud using the Freetts library, improvements to signing and mouse functions, enhancements to Font and Javascript engines. More Info...

29 Jul 10 JPedal Java ME Viewer Now released and available under an LGPL licence More Info...

12 Jul 10 Version 4.30 build 16 released Enhanced Print dialog, Control via Javascript and Applet enhancements Read More ...

10 Jun 10 Version 4.21 build 56 released Major speed improvements to viewer and general parsing speed. Read More ...

10 Jun 10 JBig 2 image decoder Version 2 released Major Upgrade to JBig2 image decoder - 3-5 times faster. Read More ...

03 Jun 10 Version 4.20 build 21 released Major Upgrade to TrueType font engine supporting Chinese fonts, speed improvements. Read More ...

22 Apr 10 EBook reader encryption Pjes now handles encrypted PDFs - upload an Encrypted PDF, and everyone will need the password to open it.
Ebook reader...

19 Mar 10 Version 4.10 build 16 released First implementation of JPedal in JavaME, support for linearization of PDFs, Coons and Tensor shading support.Read More ...

23 Sep 09 PDF Java Ebook Solution IDRsolutions is pleased to announce a new free service which embeds PDFs inside our viewer. A must for e-book authors and distributors. Read More ...

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