|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfModule
com.crionics.jpdf.AbstractModule
com.crionics.jpdf.PrinterModule
public final class PrinterModule
| Field Summary |
|---|
| Fields inherited from class com.crionics.jpdf.AbstractModule |
|---|
MOD_CREATOR, MOD_DESCRIPTION, MOD_ENCRYPTION, MOD_MERGER, MOD_PRINTER, MOD_SECURITY, MOD_SIGNER, MOD_TEMPLATE |
| Method Summary | |
|---|---|
java.awt.image.BufferedImage |
convertToImage(int pgIdx)
Converts a given page index to a graphical representation |
java.awt.image.BufferedImage |
convertToImage(int pgIdx,
int dpi)
Converts a given page index to a graphical representation |
void |
print()
Prints the current document to the default printerjob. the process shows the print preference dialog and prompts for action. |
void |
print(java.lang.Object job)
Prints the current document to the default printerjob. the process is silent and does NOT show the print preference dialog. |
void |
print(java.lang.Object job,
java.lang.Object printRequestAttributeSet)
Prints the current document to the given printerjob using attributes. the silentPrinting flag tells if the process shows the print preference dialog. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.awt.image.BufferedImage convertToImage(int pgIdx)
throws PdfException,
java.io.IOException
pgIdx - the page index to convert
PdfException - pdf generation issues
java.io.IOException - io/cache issues
public java.awt.image.BufferedImage convertToImage(int pgIdx,
int dpi)
throws PdfException,
java.io.IOException
pgIdx - the page index to convertdpi - the dotperinch ratio, default 72
PdfException - pdf generation issues
java.io.IOException - io/cache issues
public void print()
throws PdfException,
java.awt.print.PrinterException,
java.io.IOException
PdfException - pdf generation issues
java.awt.print.PrinterException - issue with the printer
java.io.IOException - io issue
public void print(java.lang.Object job)
throws PdfException,
java.awt.print.PrinterException,
java.io.IOException
job - either a javax.print.DocPrintJob or a java.awt.PrinterJob
PdfException - pdf generation issues
java.awt.print.PrinterException - issue with the printer
java.io.IOException - io issue
public void print(java.lang.Object job,
java.lang.Object printRequestAttributeSet)
throws PdfException,
java.awt.print.PrinterException,
java.io.IOException
job - either a javax.print.DocPrintJob or a java.awt.PrinterJobprintRequestAttributeSet - must have type javax.print.attribute.PrintRequestAttributeSet
which is only available on JDK 1.5+. It is left as an Object
for backward compatibility. leave null if not used. It is used
to force printer attribute properties, typically the number of
copies, the page orientation and/or any special attributes
supported by the printer.
PdfException - pdf generation issues
java.awt.print.PrinterException - issue with the printer
java.io.IOException - io issue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||