public interface PrintHandler
Browser.print() method or
window.print() JavaScript on the web page. You can use handler to get default print settings, provide custom print settings or cancel printing.
| Modifier and Type | Method and Description |
|---|---|
PrintStatus |
onPrint(PrintJob printJob)
This method is invoked when engine wants to get custom print settings and decide whether it should continue printing or not.
当引擎想要获取自定义打印设置并决定是否继续打印时,将调用此方法。 |
PrintStatus onPrint(PrintJob printJob)
printJob - active print job. Use it to access default print settings and modify them.
-活动的打印作业。使用它来访问默认打印设置并进行修改。
PrintStatus.CONTINUE to continue printing.
PrintStatus.CANCEL to cancel printing. You can return
null. In this case it will be equivalent of
PrintStatus.CANCEL.
继续打印。取消打印。您可以返回。在这种情况下,它等于。