def write_metadata(self): d = self.doc.contents if 'fn' in d: self.metadata['title'] = d['fn'][0].value + ' (contact info)' elif 'org' in d: self.metadata['title'] = ', '.join(d['org'][0].value) + ' (contact info)' if self.__timestamp: self.metadata['date'] = '%s/%s/%s' % (self.__timestamp[1], self.__timestamp[2], self.__timestamp[0]) self.metadata['revision-timestamp'] = time.strftime("%Y%m%dT%H%M%SZ", self.__timestamp) FakePDFDoc.write_metadata(self)
def write_metadata(self): FakePDFDoc.write_metadata(self)