I have the following:
- routine X that creates a PDF file on a daily basis.
- routine Y that attaches this file to an Outlook e-mail and sends it to recipients.
Both the above are in VBA. They are called from a C# console application.
Once the PDF has been created I need to password protect it. To do this via VBA without purchasing third party software is quite involved.
What is the simplest solution using C#?
(I'm suspecting there will be an inverse relationship between amount we spend and complexity of answer!)