The solution to this problem depends on the underlying issue, as well as the make and model of the printer. For instance, Canon recommends first checking the printer's ink levels, replacing any empty or low cartridges, and ensuring that all cartridges are properly seated and installed.
Printing and scanning an alignment page may also resolve this issue, according to Canon. For Epson printers, check that the paper size setting is correct in the printer's software and, if necessary, run the nozzle check and print head cleaning utilities. If the issue persists, contact the manufacturer's support team for further troubleshooting or to schedule a repair.