Class PDFPrintPage

java.lang.Object
org.loboevolution.pdf.PDFPrintPage
All Implemented Interfaces:
Printable

public class PDFPrintPage extends Object implements Printable
A class representing a print job for a particular PDFFile. The class maintains a status dialog as it prints, allowing the user to cancel the print job.
  • Constructor Details

    • PDFPrintPage

      public PDFPrintPage(PDFFile file)
      Create a new PDFPrintPage object for a particular PDFFile.
      Parameters:
      file - the PDFFile to be printed.
  • Method Details

    • show

      public void show(PrinterJob pjob)
      Show the progress dialog for this print job
      Parameters:
      pjob - the PrinterJob representing the print job
    • hide

      public void hide()
      Close the progress dialog. Don't use this method to cancel the print job; use doCancel instead.
    • doCancel

      public void doCancel()
      Cancel the print job. Disables the cancel button, as it might take a while for the cancel to take effect.
    • print

      public int print(Graphics g, PageFormat format, int index) throws PrinterException
      Specified by:
      print in interface Printable
      Throws:
      PrinterException