Please choose a menu option

RSS feed? News:

01 Mar 10 Version 4.01 build 15 released Turn pages from all corners, First implemetation of Java3D, Linearized PDF detection and more ...

04 Feb 10 Major new version New look, new page turning mode, enhanced search, code tidy up and much more...

15 Jan 10 Version 3.92 build 40 released Improvements to PageFlow mode and bug fixes for client issues. More Info...

8 Dec 09 Version 3.91 build 80 released Speed enhancements to image printing, optimisations for PDFs reusing XObjects and general improvements. More Info...

20 Nov 09 Version 3.91 build 60 released Enhancements to PageFlow mode, Applet regression fixed and improvements to non embedded text rendering. Read More ...

05 Nov 09 Version 3.91 build 15 released Enhancements to PageFlow viewing mode including reflection effect, improvements to Viewer configuration and general bug fixes. Read More ...

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

Access Viewer Functions

Once you have integrated a Viewer component, you may want to access its functions from your own code. This section explains how to do this.

How to interact with this PDF display

To interact with this display is simple and it can all be handled through one method.

simpleViewer.executeCommand(int, object[]) - Click here to view this method.

This method uses an int to specify what you wish to do and the object[] specifies input arguments where certain methods require it for full customisation, otherwise the method will use the standard jpedal code. This will be useful if you wish to use your own popup windows for loading pdfs, printing etc.

The int values to specify a command to be used can be found in Commands.java.

The following methods will accept an object[] input.

Commands.OPENFILE :: input = {"/PDFData/example.pdf"}
Input should be the full filename expressed as a string

Commands.OPENFILE :: input = {data, "/PDFData/example.pdf"}
Input should be a byte array of the pdf data you wish to load and the filename expressed as a string

Commands.FORWARDPAGE :: input = {"3"}
Input should be the amount of pages to move by expressed as a string

Commands.BACKPAGE :: input = {"3"}
Input should be the amount of pages to move by expressed as a string

Commands.ROTATION :: input = {"90"}
Input should be the page rotation expressed as 0, 90, 180 or 270 expressed as a string

Commands.OPENURL :: input = {"http://www.cs.bham.ac.uk/~axj/pub/papers/handy1.pdf"}
Input should be the full url including "http://" at the start expressed as a string

Commands.SCALING :: input = {"300"}
Input should be the scaling value expressed as a string

Commands.FIND :: input = {"example", 0, true, false}
Input should be, as above, in the following order.
String representing the term or terms to be searched for.
Integer value representing a bitwise OR of the static values stored in the class SearchType representing search options.
Boolean value, if true, will treat search value as a list seperated by a space between each value else will treat the entire string as a single search term.
Boolean value, if true, will only search the current page else the entire document is searched.

Commands.SCROLL:: input = {new Rectangle(1,1,100,100), 1}
Input should be, as above, in the following order.
A Rectangle to scroll to on a page.
An Integer value for the page the area is on. If this value is less than 1, greater than the page count or the value is null then current page is assumed.

 

PDF viewer


PDF viewer