Amazing! Thanks Martin.
After three years your same codes still works like a champ!
I am using VS 2010, .Net 4.0, and IIS 7. I have tested using Adobe (used to be Acrobat) Reader (the latest) and Ghostscript (latest 9.06). The codes just work. I would choose Ghostscript for three reasons:
1. Adobe Reader requires frequent security updates these dates, I don’t want that on my web server.
2. Adobe Reader pops up automatically although laid minimized. This is a minor issue as I don’t mind it stays on the task bar. However, Ghostscript is totally clean. It pops up the commandline prompt to run but closes itself when finished.
3. Adobe Reader is bloated and you never know what changes they would make after say, one year. Ghostscript has been always a minimalist in all this years.