I have installed pdftk using snap in Ubuntu 18.04:
sudo snap install pdftk
In my home folder pdftk works fine:
root@localhost:/home# a.pdf output secure.128.pdf owner_pw 123456
root@localhost:/home# ls
a.pdf secure.128.pdf
But in the /var/www folder it doesn't work:
root@localhost:/var/www/multi/pdfs# ls
a.pdf
root@localhost:/var/www/multi/pdfs# pdftk a.pdf output secure.128.pdf owner_pw 123456
Error: Unable to find file.
Error: Failed to open PDF file:
a.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.