I need to write an application, which highlights some text in a PDF file and add annotations to them.
I've used the PDF Clown library and it works well with non-encrypted files in the following way:
- I read the PDF file A.
- Add some annotations and highlights.
- Write out the result to PDF file B.
File A is not changed.
This works well for non-encryped files, but does not work for encrypted ones.
How can I add highlights and annotations to an encrypted file in C# or Java?