[PR #40] [MERGED] Correct improper decryption of PDFStream object in Adobe Digital Editions PDF #3

Closed
opened 2026-02-13 15:47:38 -06:00 by mirrors · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Satsuoni/DeDRM_tools/pull/40
Author: @LugubriousProphecy
Created: 12/31/2025
Status: Merged
Merged: 1/1/2026
Merged by: @Satsuoni

Base: masterHead: master


📝 Commits (3)

  • 60ee0dd modified PDFStream object to decrypt included dictionary
  • e43ee8b update version number
  • 8b19d10 fix missing variable definition

📊 Changes

1 file changed (+19 additions, -6 deletions)

View changed files

📝 DeDRM_plugin/ineptpdf.py (+19 -6)

📄 Description

The original code fails to decrypt the dictionary object present within the stream object, decrypting only the data contained within the stream and not the remaining dictionary portion of the stream object. This leads to improper decryption of images with an Indexed colorspace where the lookup table is stored as an encrypted string within the dictionary of the stream object.

This change allows the decryption of the remaining data within the stream object , stored as a dictionary, and fixes the color issue that plagued encrypted PDFs with Indexed images.

The impetus for correcting this came from a PDF with images whose color was corrupted, but there may be other cases where issues have arisen due to significant information within the stream object not being properly decrypted. This change applies to the stream object and will resolve issues in those cases as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Satsuoni/DeDRM_tools/pull/40 **Author:** [@LugubriousProphecy](https://github.com/LugubriousProphecy) **Created:** 12/31/2025 **Status:** ✅ Merged **Merged:** 1/1/2026 **Merged by:** [@Satsuoni](https://github.com/Satsuoni) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`60ee0dd`](https://github.com/Satsuoni/DeDRM_tools/commit/60ee0dd47981cc00a48332f529923a536fc7adcd) modified PDFStream object to decrypt included dictionary - [`e43ee8b`](https://github.com/Satsuoni/DeDRM_tools/commit/e43ee8b966502847b5445275b00ffc5847b750ad) update version number - [`8b19d10`](https://github.com/Satsuoni/DeDRM_tools/commit/8b19d104f6b5e197a2a5928fd1e9a94b44e72a6b) fix missing variable definition ### 📊 Changes **1 file changed** (+19 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `DeDRM_plugin/ineptpdf.py` (+19 -6) </details> ### 📄 Description The original code fails to decrypt the dictionary object present within the stream object, decrypting only the data contained within the stream and not the remaining dictionary portion of the stream object. This leads to improper decryption of images with an Indexed colorspace where the lookup table is stored as an encrypted string within the dictionary of the stream object. This change allows the decryption of the remaining data within the stream object , stored as a dictionary, and fixes the color issue that plagued encrypted PDFs with Indexed images. The impetus for correcting this came from a PDF with images whose color was corrupted, but there may be other cases where issues have arisen due to significant information within the stream object not being properly decrypted. This change applies to the stream object and will resolve issues in those cases as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirrors 2026-02-13 15:47:38 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mirrors/DeDRM_tools#3
No description provided.