Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Please help PS 2 PDF #118

Answered by veb86
veb86 asked this question in Q&A
Discussion options

Please help PS 2 PDF
I need to make the request correctly so that I can convert the postscript file into PDF.
I'm interested in how to complete the request.

For example like this:
switches.Add("-dBATCH");
switches.Add("-dNOPAUSE");

You must be logged in to vote

Issue resolved:

 List<string> switches = new List<string>();
 switches.Add("-dBATCH");
 switches.Add("-dSAFER");
 switches.Add("-dNOPAUSE");
 switches.Add("-q");
 switches.Add("-sDEVICE=pdfwrite");
 switches.Add("-sOutputFile=" + outputFileName+".pdf");
 switches.Add("-c");
 switches.Add("...

Replies: 1 comment

Comment options

Issue resolved:

 List<string> switches = new List<string>();
 switches.Add("-dBATCH");
 switches.Add("-dSAFER");
 switches.Add("-dNOPAUSE");
 switches.Add("-q");
 switches.Add("-sDEVICE=pdfwrite");
 switches.Add("-sOutputFile=" + outputFileName+".pdf");
 switches.Add("-c");
 switches.Add("-f");
 switches.Add(outputFileName);
 // create a new instance of the GhostscriptProcessor
 using (GhostscriptProcessor processor = new GhostscriptProcessor())
 {
 // start processing pdf file
 processor.StartProcessing(switches.ToArray(), null);
 }
You must be logged in to vote
0 replies
Answer selected by veb86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /