diff --git a/PyPDF2/pdf.py b/PyPDF2/pdf.py index 9bfa1bd0d..5bd4b7968 100644 --- a/PyPDF2/pdf.py +++ b/PyPDF2/pdf.py @@ -2896,7 +2896,7 @@ def getText(self, key): return retval return None - title = property(lambda self: self.getText("/Title")) + title = property(lambda self: self.getText("/Title") or self.get("/Title").getObject() if self.get("/Title") else None) """Read-only property accessing the document's **title**. Returns a unicode string (``TextStringObject``) or ``None`` if the title is not specified."""