Created attachment 12407 [details] postscript file while direct print the ps file to printer with "-dNoCancel" option,the printer will print blank content or nothing.But without "-dNoCancel" ,printer is work fine. my command like this, gswin64c.exe -dBATCH -dNOPAUSE -dNOSAFER -sDEVICE=mswinpr2 -dNoCancel -sOutputFile="%printer%GP-5850II" weiweiPeiSong_WIN-P54UIGC04HH_Administrator_20160307_153553_27.ps GP-5850II is a ticket printer. maybe reopen #696258
The sample file seems incorrect. It sets an A4 paper size and prints a small, 10x50 mm picture in the upper left corner. At least, it does this on standard desktop printers. There's no difference in the output of the provided file and a few other files tested whether -dNoCancel is specified or not. Little else can be done without testing the actual printer.