def save(self, file): file.write( string.join([ "<</Title (%s)", "/Author (%s)", "/CreationDate (D:%s)", "/Producer (PDFgen)", "/Subject (%s)", ">>" ], LINEEND) % (pdfutils._escape(self.title), pdfutils._escape(self.author), self.datestr, pdfutils._escape(self.subject)) + LINEEND)
def save(self, file): file.write(string.join([ "<</Title (%s)", "/Author (%s)", "/CreationDate (D:%s)", "/Producer (PDFgen)", "/Subject (%s)", ">>" ], LINEEND ) % ( pdfutils._escape(self.title), pdfutils._escape(self.author), self.datestr, pdfutils._escape(self.subject) ) + LINEEND)