1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:37:46 +00:00

LibPDF: Treat Encyption's Length item as optional

With the StandardSecurityHandler the Length item in the Encryption
dictionary is optional, and needs to be given only if the encryption
algorithm (V) is other than 1; otherwise we can assume a length of 40
bits for the encryption key.
This commit is contained in:
Rodrigo Tobar 2022-12-20 13:55:33 +08:00 committed by Andreas Kling
parent b8dc05a08e
commit dc6a11cf6b
2 changed files with 16 additions and 1 deletions

View file

@ -134,6 +134,7 @@
A(UCR) \
A(UseBlackPTComp) \
A(UserUnit) \
A(V) \
A(W) \
A(WhitePoint) \
A(Width) \