title: Java raw Postscript printing, sending XPS_PASS (Windows specific)
body: <p>Newer XPS print drivers (almost all Windows 8 print drivers) require DOCINFO.pDataType = "XPS_PASS" (instead of "RAW") to pipe raw print jobs (Postscript/PCL/ZPL/etc).<br>
  (<a href="https://stackoverflow.com/questions/17078852/send-postscript-document-to-printer-using-vc/17216633">Send Postscript Document to Printer using VC++</a>)<br>
  (<a href="https://stackoverflow.com/questions/25807081/how-to-make-rawprinterhelper-work-in-both-xps-path-and-raw-data-types">How to make RawPrinterHelper work in both XPS_PATH and RAW data types?</a>)</p>
  
  <p>Other than using something like JNA, is there a way to do this in a Java applet/application?<br>
  I can use JNA, and plan to use it for printer management, but I'd rather the actual printing not have to delve into JNA - Win32 API territory.</p>
  
  <p>NOTE: I also want to avoid having to pipe directly to 9100, serial ports, etc.  Makes more sense to make use of already detected/configured printers.</p>
  
  <p><strong><em>WORKAROUND:  I've had success using JNA and JOB_INFO to send "XPS_PASS".  Can use PRINTER_INFORMATION_4 and DOCINFO_4/DOCINFO_8 (implement structs yourself) to detect if XPS_PASS or RAW should be sent.  See C++ examples</em></strong></p>