I have a text file that I need to print to paper using java. I don't mean System.out.println() Has anyone got some sample code I could use for this? I normally read my way into this but I'm in a bit of a rush with this.
Everthing seems to work on javas end now but when trying to print I get the following error message in the status windows of the printer queue: Error: pstopdffilter/pstocupsraster failed with err number -31000
I'm using the following stream:
I have tried several different ones such as text UTF 16 and postscript but that had no affect. Does anyone know what this error message means?