PHPackages                             abcde1410/pdfdecrypter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. abcde1410/pdfdecrypter

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

abcde1410/pdfdecrypter
======================

PDF Decrypter is a standalone PHP library allowing quick and convenient decryption and permanently removing password from PDF files. Currently in beta phase. Throws custom exceptions for better error handling.

06211PHP

Since Jan 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abcde1410/PDFDecrypter)[ Packagist](https://packagist.org/packages/abcde1410/pdfdecrypter)[ RSS](/packages/abcde1410-pdfdecrypter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PDFDecrypter
============

[](#pdfdecrypter)

PDF Decrypter is a standalone PHP library allowing quick and convenient decryption and permanently removing password from PDF files.

Version Status
--------------

[](#version-status)

This library is currently in the beta phase. This means that it is undergoing testing, and some features may not be fully supported yet. Below is a list of limitations and considerations:

- Stream filters other than the FlateDecode filter are not yet supported.
- Predictor algorithms other than the PNG Up Algorithm are not yet supported.
- Hint tables for linearized files are not yet supported, so the file is no longer linearized after decryption.

System Requirements
-------------------

[](#system-requirements)

- PHP version 8.1 or later

Installation
------------

[](#installation)

Install the latest version with:

```
composer require abcde1410/pdfdecrypter
```

Usage
-----

[](#usage)

```
Use Abcde1410\PDFDecrypter\PDFDecrypter;
```

This library may throw `PDFDecrypterException` in certain situations. It is recommended to use it within a try-catch block to handle these exceptions gracefully.

1. To set the content of the encrypted document from the file:

```
$decrypter = new PDFDecrypter('path/to/file.pdf');
```

OR

```
$decrypter = new PDFDecrypter();
$decrypter->openFile('path/to/file.pdf');
```

2. If you would like to set the content of the encrypted document that has been previously loaded into memory, use the `setDocumentContent()` method:

```
$decrypter = new PDFDecrypter();
$decrypter->setDocumentContent($encryptedContent);
```

3. Set encrypted document authentication password:

```
$decrypter->setPassword('document_password');
```

4. To verify the correctness of the provided password, use the `verifyPassword()` method. You can omit this step if you are confident that the provided password is correct. The method returns true if the password is correct and false otherwise.

```
if ($decrypter->verifyPassword() === true) {
    // password is correct
}
else {
    // password is incorrect
}
```

5. You can get, show or download the decrypted file. To get decryption result as a plaintext use `get()` method:

```
$decryptedFile = $decrypter->get();
```

To show the decrypted file in the browser use `show()` method:

```
$decrypter->show();
```

To download the decrypted file use `download()` method:

```
$decrypter->download();
```

License
-------

[](#license)

This library is under the [MIT License](https://github.com/abcde1410/pdfdecrypter/blob/master/LICENSE).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dd35fbd217a04fadbda1bb2f5ea5c52e87971d52b4a8f13d94dd97cbb6dac60?d=identicon)[abcde1410](/maintainers/abcde1410)

---

Top Contributors

[![abcde1410](https://avatars.githubusercontent.com/u/155852542?v=4)](https://github.com/abcde1410 "abcde1410 (4 commits)")

---

Tags

pdfpdf-decryptphp

### Embed Badge

![Health badge](/badges/abcde1410-pdfdecrypter/health.svg)

```
[![Health](https://phpackages.com/badges/abcde1410-pdfdecrypter/health.svg)](https://phpackages.com/packages/abcde1410-pdfdecrypter)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.3k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
