From b3d8b81d0d8f65bf34cac2f09ee1f885f1979dff Mon Sep 17 00:00:00 2001 From: Michael Render Date: Thu, 23 May 2024 11:07:48 -0400 Subject: [PATCH] Ensure a space before PDF arrays are written, even in non-verbose mode --- PdfSharpCore/Pdf.IO/PdfWriter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PdfSharpCore/Pdf.IO/PdfWriter.cs b/PdfSharpCore/Pdf.IO/PdfWriter.cs index b53d5882..d24e1532 100644 --- a/PdfSharpCore/Pdf.IO/PdfWriter.cs +++ b/PdfSharpCore/Pdf.IO/PdfWriter.cs @@ -57,7 +57,7 @@ public PdfWriter(Stream pdfStream, PdfStandardSecurityHandler securityHandler) public void Close(bool closeUnderlyingStream) { if (_stream != null && closeUnderlyingStream) - _stream.Dispose(); + _stream.Dispose(); _stream = null; } @@ -577,8 +577,8 @@ void WriteSeparator(CharCat cat, char ch) } else { - if (cat == CharCat.Character) - _stream.WriteByte((byte)' '); + //if (cat == CharCat.Character) + _stream.WriteByte((byte)' '); } break; }