public class PDFPrintPage
extends java.lang.Object
implements java.awt.print.Printable
| Constructor and Description |
|---|
PDFPrintPage(com.sun.pdfview.PDFFile file)
Create a new PDFPrintPage object for a particular PDFFile.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doCancel()
Cancel the print job.
|
void |
hide()
Close the progress dialog.
|
int |
print(java.awt.Graphics g,
java.awt.print.PageFormat format,
int index) |
void |
printFile(boolean setupPaper,
ProgressObserver p)
An example method to print a file.
|
void |
show(java.awt.print.PrinterJob pjob)
Show the progress dialog for this print job
|
public PDFPrintPage(com.sun.pdfview.PDFFile file)
file - the PDFFile to be printed.public void printFile(boolean setupPaper,
ProgressObserver p)
throws java.io.IOException
setupPaper - true to post a page setup dialogjava.io.IOExceptionpublic void show(java.awt.print.PrinterJob pjob)
pjob - the PrinterJob representing the print jobpublic void hide()
doCancel instead.public void doCancel()
public int print(java.awt.Graphics g,
java.awt.print.PageFormat format,
int index)
throws java.awt.print.PrinterException
print in interface java.awt.print.Printablejava.awt.print.PrinterException