I've done this before and is definitely worth a shot with most printers, but despite being such a simple goal it can get surprisingly in the weeds.
I did eventually find success with an old Brother laser printer using the brlaser driver and a RPi3, but not before spending at least a week troubleshooting why all but the simplest print jobs would fail. Getting a reliable wifi connection took even longer.
I did eventually find success with an old Brother laser printer using the brlaser driver and a RPi3, but not before spending at least a week troubleshooting why all but the simplest print jobs would fail. Getting a reliable wifi connection took even longer.