Score:0

PDFTK wok from home folder but not in www

in flag

I have installed pdftk using snap in Ubuntu 18.04

sudo snap install pdftk

In home folder pdftk work fine

root@localhost:/home# a.pdf output secure.128.pdf owner_pw 123456

root@localhost:/home# ls
a.pdf  secure.128.pdf

but in 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.
Liso avatar
sd flag
Can you try absolute path (e.g. `/var/www/multi/pdf/a.pdf`) and see if it is working?
hous avatar
in flag
`pdftk /var/www/multi/pdfs/a.pdf output /var/www/multi/pdfs/secure.128.pdf owner_pw 123456` gives the same error
hr flag
Likely related: [accessing files outside of /home in snap apps](https://askubuntu.com/questions/1228899/accessing-files-outside-of-home-in-snap-apps)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.