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.
/var/www/multi/pdf/a.pdf
) and see if it is working? – Liso Nov 16 '21 at 08:59pdftk /var/www/multi/pdfs/a.pdf output /var/www/multi/pdfs/secure.128.pdf owner_pw 123456
gives the same error – hous Nov 16 '21 at 10:20