Please choose a menu option

RSS feed? News:

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 ...

04 Feb 10 Major new version New look, new page turning mode, enhanced search, code tidy up and much 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 ...

JPedal Key Classes

This article describes the key classes in JPedal and their purpose. Click here for the javadocs and other useful articles. Here are some of the key classes if you are looking to explore JPedal further.

SimpleViewer/MultiViewer

These classes implement all the functionality of a Java PDF viewer to provide complete, totally configurable PDF Viewer. They can be run standalone (as applets of applications) or embedded in your code. Click here for lots of tutorials on configuration.

PdfDecoder (PdfPanel)

PdfDecoder is the main class used to create an instance of the PDF which can be opened, displayed, etc. It actually extends PdfPanel which extends JPanel to provide a Swing component which can open, decode, display, print and rasterize. GUI code is in PdfPanel and 'business' logic is in PdfDecoder wherever possible but the user can think of it as just a PdfDecoder class.

All the examples build on PdfDecoder to provide higher level specific functionality (ie rasterizer, viewer, print engine). Click here for a full list of examples with sample Java code and documentation.

PdfStreamDecoder

PdfDecoder uses this class to parse the page data, converting it into extracted content. It also creates a DynamicVectorRenderer object which can render the PDF page onto any Graphics2D object (providing viewing, rasterizing, printing capabilities).

DynamicVectorRenderer

A decoded page is stored in a DynamicVectorRenderer object. This uses Java2D to produce a display of the page. It can also draw additional content over the page. PdfDecoder uses this instance to paint the page for display purposes.

PdfObject/PdfDictionary

A PDF file consists of a large number of objects. These are read into a PdfObject (or a more specific class such as FormObject, PageObject). For speed, all the Dictionary keys found in a PDF dictionary are defined as unique constants.

 

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