WebKit2.PrintOperation.prototype.print

function print(): void {
    // Gjs wrapper for webkit_print_operation_print()
}
  

Start a print operation using current print settings and page setup without showing the print dialog. If either print settings or page setup are not set with WebKit2.PrintOperation.prototype.set_print_settings and WebKit2.PrintOperation.prototype.set_page_setup, the default options will be used and the print job will be sent to the default printer. The WebKit2.PrintOperation::finished signal is emitted when the printing operation finishes. If an error occurs while printing the signal WebKit2.PrintOperation::failed is emitted before WebKit2.PrintOperation::finished.