If you are using Windows 10 and your printer is offline, then to get your printer back online, go to the Windows 10 printer offline fix error. https://printeroffline.org/window-10-printer-offline/
DESCRIPTION :
A printer can be offline for many different reasons, users who are unable to process printer fixing. You can fix your offline printer by using different fixes for it.