Skip to content

Commit

Permalink
Fix #865 - PDF metadata not encrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
lfavole authored Jul 25, 2023
1 parent df762e3 commit 97f106a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fpdf/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def __init__(
creation_date: PDFDate,
):
super().__init__()
self.title = PDFString(title) if title else None
self.subject = PDFString(subject) if subject else None
self.author = PDFString(author) if author else None
self.keywords = PDFString(keywords) if keywords else None
self.creator = PDFString(creator) if creator else None
self.producer = PDFString(producer) if producer else None
self.title = PDFString(title, encrypt=True) if title else None
self.subject = PDFString(subject, encrypt=True) if subject else None
self.author = PDFString(author, encrypt=True) if author else None
self.keywords = PDFString(keywords, encrypt=True) if keywords else None
self.creator = PDFString(creator, encrypt=True) if creator else None
self.producer = PDFString(producer, encrypt=True) if producer else None
self.creation_date = creation_date


Expand Down

0 comments on commit 97f106a

Please sign in to comment.