I'm trying to embed a pdf viewer in a WinForms Control in such a way that I can display the pdf to the user within the context of my application. I also need to prevent the user from copying text, printing, or saving a copy (sensitive data).
Thus far I've tried using a WebBrowser to host the Acrobat Reader activex control. This gets me close but leaves me with 2 problems.
1. Any pdfs I open seem to stay open from a file handle standpoint until the application shuts down. I've tried calling Dispose() and Navigate() to no avail.
2. I need to disable the toolbar in Reader. I can't set the viewer preferences in the original pdf files but I'm considering using iText to rewrite the files with the preferences set (if I can do that).
I'd also be happy with a well recommended 3rd party library that does this.