com.ontimize.printing.html
Class HTMLPrintHandler
java.lang.Object
com.ontimize.printing.html.HTMLPrintHandler
- public class HTMLPrintHandler
- extends java.lang.Object
|
Method Summary |
java.awt.print.PageFormat |
getPF()
|
protected static java.awt.Rectangle |
getViewRect(javax.swing.text.View view,
float f,
float f_21_)
|
static void |
main(java.lang.String[] args)
|
void |
pageSetup(java.awt.print.PrinterJob printerjob)
|
void |
print(javax.swing.JEditorPane editorPane)
|
static void |
printDocument(java.io.File f)
|
static void |
printDocument(java.io.File f,
java.net.URL base)
|
static void |
printDocument(java.lang.String html)
Prints the document with the specified html code. |
static void |
printDocument(java.lang.String html,
java.net.URL base)
|
static void |
printDocument(java.net.URL page)
|
void |
setPF(java.awt.print.PageFormat pageformat)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static boolean DEBUG
DEBUG2
public static boolean DEBUG2
printJobAccessEnabled
protected boolean printJobAccessEnabled
pf
protected java.awt.print.PageFormat pf
getViewRect
protected static java.awt.Rectangle getViewRect(javax.swing.text.View view,
float f,
float f_21_)
pageSetup
public void pageSetup(java.awt.print.PrinterJob printerjob)
print
public void print(javax.swing.JEditorPane editorPane)
getPF
public java.awt.print.PageFormat getPF()
setPF
public void setPF(java.awt.print.PageFormat pageformat)
printDocument
public static void printDocument(java.lang.String html)
throws java.lang.Exception
- Prints the document with the specified html code. Here the document
codebase is not established then relative paths, like images, do not appear
- Parameters:
html -
- Throws:
java.lang.Exception
printDocument
public static void printDocument(java.lang.String html,
java.net.URL base)
throws java.lang.Exception
- Throws:
java.lang.Exception
printDocument
public static void printDocument(java.net.URL page)
printDocument
public static void printDocument(java.io.File f)
throws java.lang.Exception
- Throws:
java.lang.Exception
printDocument
public static void printDocument(java.io.File f,
java.net.URL base)
throws java.lang.Exception
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception