mirror of
https://github.com/Satsuoni/DeDRM_tools.git
synced 2026-04-12 04:15:16 -06:00
[PR #40] [MERGED] Correct improper decryption of PDFStream object in Adobe Digital Editions PDF #3
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/DeDRM_tools#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:master📝 Commits (3)
60ee0ddmodified PDFStream object to decrypt included dictionarye43ee8bupdate version number8b19d10fix 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.