After opening a user password protected pdf, if you save and then try to open that with the same password, it fails.
var doc = new PdfDocument();
doc.LoadFromBytes(fileBytes,"PASSWORD");
var ms = new MemoryStream();
doc.SaveToStream(ms);
doc.Close();
// This throws an exception
doc.LoadFromBytes(ms.ToArray(), "PASSWORD");