Hi,
Although my application was printing to an HP Posctscript printer on a Postscript driver, the actual PS output file contained a line that read something along the lines of “Language = PCL” (not exactly, this is from my memory). This was definitely a problem with my application not generating authentic Postscript. What I did to resolve the issue was I created a PCL printer and applied a RedMon redirected port which I configured to run by script. From there I used GhostPCL to convert the output to Postscript and forwarded that result file to PDFCreator using Rawprint (I think I had some issue with RedMon’s equivalent of RawPrint, but you can try RedPrint instead).
Redmon: http://pages.cs.wisc.edu/~ghost/redmon/index.htm
Rawprint: http://www.columbia.edu/~em36/windowsrawprint.html
GhostPCL: https://www.ghostscript.com/GhostPCL.html
I set the port properties to redirect this port to the program “redrun.exe” and I created a batch file to take the tempfile as a parameter, generate a random number, call GhostPCL to convert it to Postscript, call Rawprint to send the job to PDFCreator, and then delete my temporary PS file.
Of course, if you are just looking for PDF output you don’t need to convert to Postscript then send it to PDFCreator, you can create a PDF output directly from GhostPCL by changing your sDEVICE argument.
My GhostPCL command line was something like:
gpcl6win64.exe -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=%OutputPath%%random%.ps %InputTempFile%
My rawprint command was something like:
rawprint.exe PDFCreatorPrinterName %OutputPath%%random%.ps