Browse the documentation
Home
Applications
Documentation
Unlock module: removing a PDF's protection
The Unlock module removes the encryption and restrictions from a password-protected PDF, producing a copy that can be read and modified freely by any reader. You reach this module from the Security category of the Dashboard.
Prerequisites
To unlock a document, you must know the password protecting it. HtkPDF does not bypass the protection: it relies on the fact that the PDF is already open in the application, which implies that the password has already been supplied at opening time.
In practice, the sequence is as follows:
- You open a protected PDF through the import panel or a drag and drop;
- HtkPDF detects the encryption and shows a password entry dialog;
- You type the password; if correct, the PDF opens. If incorrect, opening fails;
- Once the PDF is open, you can open the Unlock module to remove the protection from the working copy permanently.
The Unlock module is only active on the Dashboard if the current document is actually encrypted (the padlock icon appears on the thumbnail). On an unprotected PDF, the button stays greyed out.
How the module works
The interface is deliberately minimal: a simple instructions area and an Unprotect button.
To remove the protection:
- Open the Unlock module from the Dashboard;
- Click the Unprotect button (whose label becomes "Unprotecting…" during processing);
- HtkPDF creates a new copy of the PDF without encryption and substitutes it for the protected version in the view.
The operation is very fast because it is limited to removing the encryption metadata and rebuilding a clean PDF. Once finished:
- the padlock icon disappears from the Dashboard thumbnail;
- the information "Protection: No" replaces "Protection: Yes" in the information area;
- any pending security option (a protection configured beforehand through the Protect module) is also cleared.
Applying to the document
As with most editing modules, unlocking is not immediately permanent: it is a pending change. To save the unlocked version:
- Click Save (⌘S) on the Dashboard;
- Choose a location and a file name in the save panel;
- HtkPDF writes the new decrypted copy to the chosen location.
A checkpoint is added to the History when unprotecting: as long as the document has not been saved, you can go back to the protected version through the History module.
Restrictions
- The module only acts on PDFs whose password you know. Without the correct password, you will not be able to open the PDF in HtkPDF, and therefore not to unlock it either.
- Unlocking removes all the restrictions associated with the encryption (printing, copying, editing). The resulting PDF is entirely free to use.
- If the PDF was protected only by an owner password (without a user password), it opens normally but with its restrictions. Unlocking then lets you remove those restrictions without any bypass.
Typical use cases
- Picking a protected document back up: you secured a document a long time ago and want to remove protection that has become pointless;
- Preparing a public distribution: a file protected for internal use becomes destined for a wider audience, and the password no longer makes sense;
- Making collaborative work easier: a protected PDF prevents multiple contributions; unlock it to let several people work on it.
- Lifting excessive restrictions: a PDF received from a third party forbids you from printing or copying when you need to for a legitimate use (and you have the owner password).
Ethical and legal aspects
The Unlock module does not allow the protection of a PDF whose password you do not know to be bypassed. There is no password-cracking tool in HtkPDF — this is a deliberate choice: no automatic password recovery mechanism is provided.
Using this module implies that you are the owner of the document or that you have explicit authorization to change its protection. Removing protection from a third party's document without authorization may be contrary to the applicable legislation on copyright or technical protection measures (DMCA, DRM, and so on).
Note: if you regularly distribute PDFs whose protection must be removable by certain recipients, prefer the two-password system (User + Owner) of the Protect module. It is the standard method for allowing selective protection without resorting to a full unlock.
Screenshots
1 screenshot — click to enlarge