Main Page | Namespace List | Class Hierarchy | Class List | Class Members | Related Pages

gnu::jpdf::PDFTest Class Reference

Collaboration diagram for gnu::jpdf::PDFTest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PDFTest (String outputPdfFile, String sampleImageFile, boolean noWindow)
void actionPerformed (ActionEvent e)

Static Public Member Functions

void main (String[] args)

Detailed Description

The purpose of this class is to test all functionality of the gnu.jpdf package and serve as a demonstration of how to use the library.

This library produces pdf format files and can display and print them in a java Graphics context by extending java.awt.Graphics and java.awt.PrintJob. The pdf file itself is not viewed, but an identical copy made with the same methods that constructed the pdf file. See the code or the tutorial for an example

Author:
Eric Z. Beard ericzbeard@hotmail.com

Author
ezb
Version:
Revision
1.4


Member Function Documentation

void gnu::jpdf::PDFTest::actionPerformed ActionEvent  e  )  [inline]
 

Very basic action handler - a more robust app would use Action objects

Parameters:
e an ActionEvent value

void gnu::jpdf::PDFTest::main String[]  args  )  [inline, static]
 

The test is initiated through the main method. From the command line, two parameters are needed, -pdf [path-to-pdf], which is the path and filename of the pdf you would like to create using this test. It should end in ".pdf". The other param is -img [path-to-image]. It should be a pre-existing image, preferably a very small jpg. The command line arg -nw, for no window test, is not yet supported.

Parameters:
args a String[] value


The documentation for this class was generated from the following file:
Generated on Wed Jan 19 16:58:08 2005 by  doxygen 1.3.9.1