Public Member Functions | |
PDFTest (String outputPdfFile, String sampleImageFile, boolean noWindow) | |
void | actionPerformed (ActionEvent e) |
Static Public Member Functions | |
void | main (String[] args) |
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
|
Very basic action handler - a more robust app would use Action objects
|
|
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.
|