I'm creating a wrapper for WkHtmlToPdf. This executable parses html and returns a pdf document as the name suggests.
You call this as follows: wkHtmlToPdf.exe www.example.com "C:\Results\Result.pdf".
The executable also comes with a few dlls.
Is there an easy solution to load the .exe into memory and call it?
Currently the code I wrote takes the .exe and the .dlls as resources, saves them to the Temp directory and calls them via command line. This current method is working nicely, but the step of saving them to the temp directory to call them sounds unnecessary. Surely there is a something like SomeReflectionMethod.Invoke(Resources.wkHtmlToPdf.exe, "www.example.com \"C:\Results\Result.pdf\"").
I have found similar questions, but am finding it difficult seeing the similarities between my specific question (and henceforth the accuracy of the provided answer).
I also have run into a few scary solutions as defined here.