Yes, I think even now we still don't have any built-in abap functions or classes to generate a password protected pdf file so we have to use other software such as PDFTKServer and call the command using SM69.
I explain more detail here on PDF encryption