3

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

Fabien Papet
  • 2,244
  • 2
  • 25
  • 52

1 Answers1

1

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.

Douglas Anderson
  • 4,652
  • 10
  • 40
  • 49