Fabien Papet
Fabien Papet

Reputation: 2319

Virtual printer : intercept data sent to printer using c#

i'm creating a PDF Creator equivalent and I have to add some options to it while using C# language.

I would like to know how I can intercept data that was sent to the printer and how I can save it in a c# variable.

My printer launches the program as follows. Redmon is used as a redirection port
enter image description here

Upvotes: 3

Views: 2003

Answers (1)

Douglas Anderson
Douglas Anderson

Reputation: 4690

Program's like Redmon allow you to save the data to file. Save it as a temp file then pass in the filename as a command line argument. You could also pass it in as stdin/stdout which is how Redmon passes it into Ghostscript but temp file solution should work well and is easy to implement.

Upvotes: 1

Related Questions