Allow to not add the /Producer field to the metadata
This commit is contained in:
parent
f94684c8ea
commit
fbeecd2301
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ class pdfdoc(object):
|
||||||
self.info[PdfName.Author] = PdfString.encode(author)
|
self.info[PdfName.Author] = PdfString.encode(author)
|
||||||
if creator is not None:
|
if creator is not None:
|
||||||
self.info[PdfName.Creator] = PdfString.encode(creator)
|
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)
|
self.info[PdfName.Producer] = PdfString.encode(producer)
|
||||||
if creationdate is not None:
|
if creationdate is not None:
|
||||||
self.info[PdfName.CreationDate] = \
|
self.info[PdfName.CreationDate] = \
|
||||||
|
|
Loading…
Reference in a new issue