Can someone explain to me what I'm missing? $ pdftk secret.pdf output /tmp/encrypted.pdf owner_pw foo $ pdfinfo /tmp/encrypted.pdf Creator: TeX Producer: LuaTeX-0.79.1 CreationDate: Wed Feb 24 14:50:53 2016 ModDate: Wed Feb 24 14:50:53 2016 Tagged: no UserProperties: no Suspects: no Form: none JavaScript: no Pages: 1 Encrypted: yes (print:no copy:no change:no addNotes:no algorithm:RC4) Page size: 297.638 x 419.528 pts Page rot: 0 File size: 10168 bytes Optimized: no PDF version: 1.5 $ xpdf /tmp/encrypted.pdf
[ a window opens with the document displayed, then I press Q ]
$
What I expect to see:
$ xpdf /tmp/encrypted.pdf
Command Line Error: Incorrect password
$
Here's the last few bytes of the (attached) PDF:
0000009301 00000 n
0000009450 00000 n
trailer
<<
/Info 11 0 R
/ID
[<5931388abe966e31cb38b9abe36c869a><821b3c112e556e27a677299496ee2555>]
/Encrypt 10 0 R
/Root 9 0 R
/Size 12
>>
startxref
9757
%%EOF
This is on jessie. The only difference on wheezy is the order of those
last few /words and the hex strings. It's still unencrypted.
Cheers,
David.
encrypted.pdf
Description: Adobe PDF document

