From 90f7c0f033cbb9ea070e38d6ba420cec81fcecf2 Mon Sep 17 00:00:00 2001 From: Christian Winnerlein Date: Tue, 24 Sep 2024 17:08:37 +0200 Subject: [PATCH] Don't add "; modified by iTextSharp " to the producer field if it has been overridden --- src/core/iTextSharp/text/pdf/PdfStamperImp.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/iTextSharp/text/pdf/PdfStamperImp.cs b/src/core/iTextSharp/text/pdf/PdfStamperImp.cs index b8a277cc..0dd68edb 100644 --- a/src/core/iTextSharp/text/pdf/PdfStamperImp.cs +++ b/src/core/iTextSharp/text/pdf/PdfStamperImp.cs @@ -208,12 +208,6 @@ internal void Close(Hashtable moreInfo) { if (producer == null) { producer = Document.Version; } - else if (producer.IndexOf(Document.Product) == -1) { - StringBuilder buf = new StringBuilder(producer); - buf.Append("; modified using "); - buf.Append(Document.Version); - producer = buf.ToString(); - } // XMP byte[] altMetadata = null; PdfObject xmpo = PdfReader.GetPdfObject(catalog.Get(PdfName.METADATA));