Restarting the printer spooler service
Enter services from the search box section, and then click on Services (Desktop app) from the results.
Right-click the Printer spooler inside the services section, and then click on Restart.
Right-click on Print spooler again, and select the properties, and then set its startup type to be automatic.
Click Ok to save your settings, and after restarting you can see whether the computer saying printer is offline status changes to online.