Class PrintUtil

java.lang.Object
net.sf.paperclips.PrintUtil

public class PrintUtil extends Object
Deprecated.
Create PrintJob instances, and print them with the PaperClips.print(PrintJob, PrinterData) method.
Deprecated class methods for printing documents--use the PaperClips class instead.
Author:
Matthew Hall
  • Method Details

    • print

      public static void print(Print print)
      Deprecated.
      Prints the argument to the default printer with 1" margins. The Print's toString() result will be used as the print job name.
      Parameters:
      print - the item to print.
    • print

      public static void print(Print print, int margins)
      Deprecated.
      Prints the argument to the default printer. The Print's toString() result will be used as the print job name.
      Parameters:
      print - the item to print.
      margins - the page margins, in points.
    • printTo

      public static void printTo(org.eclipse.swt.printing.Printer printer, Print print)
      Deprecated.
      Prints the argument to the given printer with 1" margins. The Print's toString() result will be used as the print job name.
      Parameters:
      printer - the device to print on.
      print - the item to print.
    • printTo

      public static void printTo(org.eclipse.swt.printing.Printer printer, Print print, int margins)
      Deprecated.
      Prints the argument to the given printer. The Print's toString() result will be used as the print job name.
      Parameters:
      printer - the device to print on.
      print - the item to print.
      margins - the page margins, in points.
    • print

      public static void print(String jobName, Print print)
      Deprecated.
      Prints the argument to the default printer with 1" margins.
      Parameters:
      jobName - the print job name.
      print - the item to print.
    • print

      public static void print(String jobName, Print print, int margins)
      Deprecated.
      Prints the argument to the default Printer.
      Parameters:
      jobName - the print job name.
      print - the item to print.
      margins - the page margins, in points. 72 pts = 1".
    • printTo

      public static void printTo(String jobName, org.eclipse.swt.printing.PrinterData printerData, Print print)
      Deprecated.
      Prints the argument to the given printer, with 1" margins.
      Parameters:
      jobName - the print job name.
      printerData - the printer to print to.
      print - the item to print.
    • printTo

      public static void printTo(String jobName, org.eclipse.swt.printing.PrinterData printerData, Print print, int margins)
      Deprecated.
      Prints the argument to the given printer.
      Parameters:
      jobName - the print job name.
      printerData - PrinterData of the printer to print to.
      print - the item to print.
      margins - the page margins, in points. 72 pts = 1".
    • printTo

      public static void printTo(String jobName, org.eclipse.swt.printing.Printer printer, Print print)
      Deprecated.
      Prints the argument to the given printer with 1" margins.
      Parameters:
      jobName - the print job name.
      printer - the device to print on.
      print - the item to print.
    • printTo

      public static void printTo(String jobName, org.eclipse.swt.printing.Printer printer, Print print, int margins)
      Deprecated.
      Print the argument to the given Printer.
      Parameters:
      jobName - the print job name.
      printer - the device to print on.
      print - the item to print.
      margins - the page margins, in points. 72 pts = 1".