1)
I have a user password protected PDF and try to unencrypt it with a
wrong(!) password.
To my understanding pdfe.getstatus() should return -1 but actually it
returns -2 in the
following example. Did I misunderstand the meaning of -1?

\directlua{
  doc = pdfe.open('foo.pdf')
  pdfe.unencrypt(doc, 'wrong_password', nil)
  stat = pdfe.getstatus(doc)
  print('Status:', stat) -- returns -2
}
\bye


2)
If a PDF has been unencrypted successfully, pdfe.getstatus() returns 1. I
guess it's
a typo in the documentation (ยง14.2.2) that says it should return 2.

Cheers
Andreas

Reply via email to