From fbeecd230109e121ad09e327fe2fd80a69341eb2 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 20 Jan 2017 04:45:14 +0100 Subject: [PATCH] Allow to not add the /Producer field to the metadata --- src/img2pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/img2pdf.py b/src/img2pdf.py index 703d0d3..3c3235d 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -316,7 +316,7 @@ class pdfdoc(object): self.info[PdfName.Author] = PdfString.encode(author) if creator is not None: self.info[PdfName.Creator] = PdfString.encode(creator) - if producer is not None: + if producer is not None and producer != "": self.info[PdfName.Producer] = PdfString.encode(producer) if creationdate is not None: self.info[PdfName.CreationDate] = \