public class PdfPrinter extends PrinterJobObject
Modifier and Type | Field and Description |
---|---|
boolean |
dontCloseOutputStream |
File |
outputFile |
OutputStream |
outputStream |
globalFontManager, outputCanChangeMediaOrientation, printerControl, printerSelected
Constructor and Description |
---|
PdfPrinter() |
Modifier and Type | Method and Description |
---|---|
protected void |
cancelCurrentPage(Handle h) |
protected boolean |
endPrinting(Handle h) |
IPointDocument |
getPointDocument()
Return the IPointDocument IF the output is compatible (e.g. a PDF document).
|
protected PointGraphics |
newPage(Handle h,
PageFormat format) |
protected boolean |
printCurrentPage(Handle h) |
Handle |
printDialog(WindowSurface parent)
This displays the printer select/setup dialog box, which may be a native OS
dialog box.
|
protected boolean |
startPrinting(Handle h,
String documentName) |
cancel, getCompatibleImagePoints, getCurrentPrintingHandle, getDPI, getPrintTask, isPrinting, lockIfNotPrinting, print, print, printerWasSelected, printingComplete, setPrinterProperties
public File outputFile
public OutputStream outputStream
public boolean dontCloseOutputStream
protected void cancelCurrentPage(Handle h)
cancelCurrentPage
in class PrinterJobObject
protected boolean endPrinting(Handle h)
endPrinting
in class PrinterJobObject
protected PointGraphics newPage(Handle h, PageFormat format)
newPage
in class PrinterJobObject
protected boolean printCurrentPage(Handle h)
printCurrentPage
in class PrinterJobObject
protected boolean startPrinting(Handle h, String documentName)
startPrinting
in class PrinterJobObject
public IPointDocument getPointDocument()
getPointDocument
in interface Printer
getPointDocument
in class PrinterJobObject
public Handle printDialog(WindowSurface parent)
Printer
parent
- The parent WindowSurface - which can be null.