If you ever get this error while printing on a Mac OSX, try the following steps:
1. Go to System Preferences->Print & Fax
2. Right click on the printer (having issues) in the printer list and select ‘Reset all printers’
3. After step two you will need to add your printer and try printing again.
Hope this helps.