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

New Post: postscript to file only

$
0
0
Hi,

Take a look at this sample:
    using Ghostscript.NET.Processor;


    List<string> switches = new List<string>();
    switches.Add("-empty");
    switches.Add("-dQUIET");
    switches.Add("-dSAFER");
    switches.Add("-dBATCH");
    switches.Add("-dNOPAUSE");
    switches.Add("-dNOPROMPT");
    switches.Add("-sDEVICE=pdfwrite");
    switches.Add("-sOutputFile=" + @"E:\testoutput.pdf");
    switches.Add("-f");
    switches.Add(@"E:\testinput.ps");

    using (GhostscriptProcessor processor = new GhostscriptProcessor())
    {
        processor.StartProcessing(switches.ToArray(), null);
    }

Viewing all articles
Browse latest Browse all 393

Trending Articles



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