public class HTMLPrintHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
static boolean |
DEBUG2 |
protected PageFormat |
pf |
protected boolean |
printJobAccessEnabled |
| Modifier and Type | Method and Description |
|---|---|
PageFormat |
getPF() |
protected static Rectangle |
getViewRect(View view,
float f,
float f_21_) |
static void |
main(String[] args) |
void |
pageSetup(PrinterJob printerjob) |
void |
print(JEditorPane editorPane) |
static void |
printDocument(File f) |
static void |
printDocument(File f,
URL base) |
static void |
printDocument(String html)
Prints the document with the specified html code.
|
static void |
printDocument(String html,
URL base) |
static void |
printDocument(URL page) |
void |
setPF(PageFormat pageformat) |
public static boolean DEBUG
public static boolean DEBUG2
protected boolean printJobAccessEnabled
protected PageFormat pf
public void pageSetup(PrinterJob printerjob)
public void print(JEditorPane editorPane)
public PageFormat getPF()
public void setPF(PageFormat pageformat)
public static void printDocument(String html) throws Exception
html - Exceptionpublic static void printDocument(String html, URL base) throws Exception
Exceptionpublic static void printDocument(URL page)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.