I want to print plain text (probably cp1252 or whatever Windows is using) to a particular printing service. Sounds easy, right? But success seems to depend strongly on the type of printer you're using.
I have three different printers available. One is a HP LaserJet (a regular printer), one is Free PDF (a virtual PDF printer) and one is Tobit Faxware (a virtual faxing service - this is what i want to print to).
According to the supported doc flavors none offers "text/plain" or any other "text" format.
When i print using DocFlavor.URL.AUTOSENSE the HP printer will print the text properly, but the other two will fail silently. Since the "text" DocFlavors are not supported, i cannot give the printers any more hints other than "autosense".
When using Windows' Notepad to print the file, it works fine for all three printers. The difference seems to be that i'm printing "RAW" data, while notepad uses "NT EMF 1.008".
Is there any way for me to make it work using a java PrintService?