|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.simoes.lpd.util.PrintUtil
This is a utility class to help us print labels.
| Constructor Summary | |
PrintUtil()
|
|
| Method Summary | |
void |
printPDF(byte[] data,
java.lang.String printer)
This version takes the byte[] passed in and creates a temporary file. |
void |
printPDF(java.io.File filename,
java.lang.String printer)
Executes command "cmd /c AcroRd32.exe /t c:\some\file\name.txt printerName". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PrintUtil()
| Method Detail |
public void printPDF(java.io.File filename,
java.lang.String printer)
throws LPDException
filename - - A File representing the pdf we want to print.printer - - Printer to send PDF to, if this is null use default printer
LPDException
public void printPDF(byte[] data,
java.lang.String printer)
throws LPDException
LPDException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||