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, setPrinterPropertiespublic File outputFile
public OutputStream outputStream
public boolean dontCloseOutputStream
protected void cancelCurrentPage(Handle h)
cancelCurrentPage in class PrinterJobObjectprotected boolean endPrinting(Handle h)
endPrinting in class PrinterJobObjectprotected PointGraphics newPage(Handle h, PageFormat format)
newPage in class PrinterJobObjectprotected boolean printCurrentPage(Handle h)
printCurrentPage in class PrinterJobObjectprotected boolean startPrinting(Handle h, String documentName)
startPrinting in class PrinterJobObjectpublic IPointDocument getPointDocument()
getPointDocument in interface PrintergetPointDocument in class PrinterJobObjectpublic Handle printDialog(WindowSurface parent)
Printerparent - The parent WindowSurface - which can be null.