I have the following code:
ProcessStartInfo si = new ProcessStartInfo("./Resources/pdftk.exe", executionstring);
Process myproc = Process.Start(si);
In my watch window, while debugging, I see this:
alt text http://img529.imageshack.us/img529/174/watchn.png
What I would actually type at a command prompt is:
pdftk.exe "C:\test.pdf" unpack_files output "C:\TEMP" dont_ask
However, I think somewhere in there the process isn’t getting started with the correct arguments, and thus not doing its job. Any suggestions?
I got it working. What I ended up doing was putting my string onto the clipboard, copying it to notepad, and then analyzing if it’s correct:
My problem came down to the arguments to pdftk.exe being formed incorrectly.