Thanks Gilad Denneboom & Tilman Hausherr for your prompt response. I have tried with the version PDFBox (2.0.15) but the issue still persists. I have yet to try the "Encrypt" command line utility but at the end I have to achieve this using this programmatically. I've shared my testing java code and the sample input & output pdf files at the following sharehoster url, please take a look.
https://drive.google.com/open?id=1rYRXFLi7NuzkkvZrm8Er3Lgqn97u2ePs Appreciate any help on this. Thanks On Sat, May 18, 2019 at 1:30 AM Tilman Hausherr <thaush...@t-online.de> wrote: > Am 17.05.2019 um 09:47 schrieb RJC 2009: > > I am using PDFBox version 2.0.5 and looking for help to protect a PDF > with > > owner password. > > > Please retry with the current version. If it doesn't work, please upload > code, source and modified file to a sharehoster. (The code here can't be > used, it has lots of "*"). > > Try also the "Encrypt" command line utility. > > Tilman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >