コード例 #1
0
 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)
コード例 #2
0
ファイル: pdfdoc.py プロジェクト: CKannas/rdkit
 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)