diff --git a/src/PdfSharp/Pdf.Internal/PdfEncoders.cs b/src/PdfSharp/Pdf.Internal/PdfEncoders.cs index 661d4dc6..a2fb9195 100644 --- a/src/PdfSharp/Pdf.Internal/PdfEncoders.cs +++ b/src/PdfSharp/Pdf.Internal/PdfEncoders.cs @@ -398,6 +398,7 @@ public static byte[] FormatStringLiteral(byte[] bytes, bool unicode, bool prefix } else { + securityHandler?.EncryptBytes(bytes); pdf.Append('<'); for (int idx = 0; idx < count; idx++) pdf.AppendFormat("{0:X2}", bytes[idx]); diff --git a/src/PdfSharp/PdfSharp.csproj b/src/PdfSharp/PdfSharp.csproj index 96548b98..339f4e9b 100644 --- a/src/PdfSharp/PdfSharp.csproj +++ b/src/PdfSharp/PdfSharp.csproj @@ -11,11 +11,11 @@ false false true - https://github.com/LionelVallet/PDFsharp - 0 + https://github.com/leppie/PDFsharp + hex-fix 1.51.5185 - empira Software GmbH, Lionel Vallet - PDFSharp.NetStandard2 + empira Software GmbH, Lionel Vallet, leppie + PDFSharp.NetStandard2.HexFix PDFSharp, NET, Standard, Core, PDF, Creation true StrongnameKey.snk