# How to unlock a locked PDF

**URL:** https://discourse.devontechnologies.com/t/how-to-unlock-a-locked-pdf/70394
**Category:** DEVONthink
**Created:** [April 5, 2022, 4:44pm UTC](https://discourse.devontechnologies.com/t/how-to-unlock-a-locked-pdf/70394 "2022-04-05T16:44:03Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![pete31](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/p/d26b3c/32.png) [@pete31](https://discourse.devontechnologies.com/u/pete31)
#### Post date: [April 6, 2022, 3:23pm UTC](https://discourse.devontechnologies.com/t/how-to-unlock-a-locked-pdf/70394/14 "2022-04-06T15:23:43Z")

</div>

> [@Blanc](#):
>
> Anybody can hop over it, but it is apparent that they shouldn’t.

Blanc, it should be possible to unlock PDFs with this [test script](https://discourse.devontechnologies.com/t/decrypt-pdfs-while-import-into-dt/65921/15). If it works (i.e. an unlocked PDF is written to the desktop) then setting the output path to the input path should overwrite the locked PDF. Not sure but I think I tested it back then.

If that works it should be possible to unlock PDFs via script in DEVONthink.

(I’m not looking into this again, but maybe someone wants to test it. If overwriting a given path with an unlocked PDF works then there still might be some other problem (e.g. loss of PDF metadata), otherwise I don’t know why I didn’t post a full script)

---

_[View the full topic](https://discourse.devontechnologies.com/t/how-to-unlock-a-locked-pdf/70394)._
