PdfSharp 6.x series have a bug when setting UserPassword property. The document cannot be opened with Edge (🤦).
Working versions
- 1.50.5147, targeting net48
Broken versions used for reproducing
- 6.0.0, targetting net8.0
- 6.1.1, targetting net8.0 and net48
- 6.2.0-preview-3, targetting net8.0
The issue was reported to us by several independent customers.
Expected Behavior
Document can be opened in Edge with correct password.
Actual Behavior
Document does not open due to some password issue.
Steps to Reproduce the Behavior
- Create blank page PDF
Dim PDF As New PdfSharp.Pdf.PdfDocument
PDF.AddPage()
PDF.SecuritySettings.UserPassword = "1234"
PDF.Save("D:\_Temp\File.pdf")
or C# version from #253
var PDF = new PdfSharp.Pdf.PdfDocument();
PDF.AddPage();
PDF.SecuritySettings.UserPassword = "1234";
var filename = "File.pdf";
PDF.Save(filename);
- Open it with Edge
Or send it to some unfortuante user that's still using Edge 🤦
Side notes
It works in Acrobat and Chrome.
Tested with Edge 135.0.3179.98 64bit
Tested with Edge 136.0.3240.50 64bit
This doesn't seem to be related to #253, as that one was TFM-specific. My wild guess is that some additional metadata is expected by Edge that was present in 1.50.5147 and removed in the migration.
PdfSharp 6.x series have a bug when setting
UserPasswordproperty. The document cannot be opened with Edge (🤦).Working versions
Broken versions used for reproducing
The issue was reported to us by several independent customers.
Expected Behavior
Document can be opened in Edge with correct password.
Actual Behavior
Document does not open due to some password issue.
Steps to Reproduce the Behavior
or C# version from #253
Or send it to some unfortuante user that's still using Edge 🤦
Side notes
It works in Acrobat and Chrome.
Tested with Edge 135.0.3179.98 64bit
Tested with Edge 136.0.3240.50 64bit
This doesn't seem to be related to #253, as that one was TFM-specific. My wild guess is that some additional metadata is expected by Edge that was present in 1.50.5147 and removed in the migration.