today-i-learnt

How to encrypt a pdf on linux

Category shell
Added on 2026-03-26
Source source
$ pdftk [mydoc].pdf output [mydoc.128].pdf owner_pw [foo] user_pw [baz]

Both owner_pw and user_pw are needed.

From this page it seems that

Additional permissions may be granted, see EXAMPLES in https://web.mit.edu/outland/arch/sun4x_58/build/pdftk-1.12/pdftk.1.html