Package org.htmlunit

Interface PrintHandler

  • All Superinterfaces:
    java.io.Serializable

    public interface PrintHandler
    extends java.io.Serializable
    A handler for JavaScript Window.print() (Printing Spec). All js execution on page containing the document is blocked during the execution of the print method.

    If the PrintHandler for the WebClient is null Window.print() will be a nopp including not triggering any print events.

    • Method Detail

      • handlePrint

        void handlePrint​(HtmlPage page)
        Handle a call to Window.print().
        Parameters:
        page - the HtmlPage to print