Handling of Length entry in PDF 2.0 encryption dictionary is not compliant with ISO 32000-2
Table 20 in clause 7.6.2 of ISO 32000-2:2020 (and 2017 for that matter) states that the Length entry is deprecated, and only meaningful if the security handler version is 2 or 3. Nonetheless, Acrobat and Reader refuse to decrypt files that were encrypted with a v5 security handler that doesn't set this entry. I've attached two files that were generated in the exact same way, barring the absence of the Length entry in one of them.
1
vote
![](https://secure.gravatar.com/avatar/26c829aff43c30737966347abe80d4a5?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)