To reset the printing mechanism, check out steps to troubleshoot HP Printer offline windows 10 issue:
Check Printer and Network Connection: To fix an HP printer that isn't working, you need to check the printer and network connection. To do so, you can turn off the printer for 25 to 30 seconds and turn it back on again. Also, make sure the cable is connected firmly and the router is working correctly.
Use Printer Offline Setting: If your printer is not able to print because of the "Use Printer Offline" setting, you can close this setting.
Set It as the Default Printer: Click again on Printers & scanners setting. Click the printer device and select Open queue. Next, click Printer and select Set As Default Printer.
Fix it via Services: Using this method requires that your printer uses a WSD port. If it doesn't, you can skip it.