Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: Suppress all dialogs

$
0
0
Hi josip,
I'm having the same problem, I have all the parameters and I am capable of printing by bash.
Am I missing anything or is this a bug?

My switches:
      string printerName = "MyPrinter";
      string inputFile = @"C:\my.pdf";

       List<string> switches = new List<string> {  "-empty", 
                                                            "-sDEVICE=mswinpr2", 
                                                            "-dBATCH", 
                                                            "-dNOPAUSE", 
                                                            "-dNOPROMPT",
                                                            "-dNoCancel",
                                                            @"-sOutputFile=""%printer%" + printerName+@"""",                                                
                                                            "-q", 
                                                            "-f", inputFile };
wich is the same i use on bash
gswin32c.exe -dBATCH -dNOPAUSE -dNOPROMPT -dNoCancel -sDEVICE=mswinpr2 -sOutputFile="%printer%MyPrinter" -q -f "C:\my.pdf"
If you need more info please ask.

thanks in advance

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>