1
0
Fork 0
forked from josch/img2pdf

Allow to not add the /Producer field to the metadata

This commit is contained in:
Johannes 'josch' Schauer 2017-01-20 04:45:14 +01:00
parent f94684c8ea
commit fbeecd2301

View file

@ -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] = \