Decrypt document.
(self, password)
| 4219 | return xref |
| 4220 | |
| 4221 | def authenticate(self, password): |
| 4222 | """Decrypt document.""" |
| 4223 | if self.is_closed: |
| 4224 | raise ValueError("document closed") |
| 4225 | val = mupdf.fz_authenticate_password(self.this, password) |
| 4226 | if val: # the doc is decrypted successfully and we init the outline |
| 4227 | self.is_encrypted = False |
| 4228 | self.is_encrypted = False |
| 4229 | self.init_doc() |
| 4230 | self.thisown = True |
| 4231 | return val |
| 4232 | |
| 4233 | def can_save_incrementally(self): |
| 4234 | """Check whether incremental saves are possible.""" |