If thehp printer says offlinethere may be a problem with the printer itself. Make sure the printer is turned on and connected to your computer via Wi-Fi or a cable. Look for a small piece of paper or ink and make sure the lid is not open and the paper is not jammed.