empira / PDFsharp

PDFsharp and MigraDoc Foundation for .NET 6 and .NET Framework
https://docs.pdfsharp.net/
Other
492 stars 114 forks source link

Support inline dictionaries for Encrypt tag #159

Open Greybird opened 1 month ago

Greybird commented 1 month ago

PDFSharp assumes that /Encrypt is a reference. But it can actually be an inlined dictionary.

I forged the following file to replicate a situation I was having: dictionary_encrypt.pdf. I used it for the unit test.