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 the JPedal library to provide complete, totally configurable Viewers. 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 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.
 











