Need to develop Firefox Quantum extension and Windows application for print html pages with WebExtensions/Native Messaging technology.
Browser: Firefox 57+
OS Windows 7,8,10.
Data are sended (json format preferred) from Javascript to application:
{
printer : printerKey,
html : html +css page to print
margins : margins {top,left,bottom,right} in mm.
token : token for authentification
}
Application must be .exe file and should start as a service.
In application's settings we can link printerKeys to the preinstalled printers and set security key, which hash will be validated.
Pages must be printed asynchronously on severall printers. Returns true on success, false on error.
PS. Before firefox quantum there was the extension jsPrintSetup, which I successfully used. Now old extensions are not supported and Web extensions do not allow to set printer for printing page from Javascript.
Result:
application, extension, source code, instructions.