src/eric7/QScintilla/Exporters/ExporterPDF.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9500
5771348ded12
child 9653
e67609152c5e
equal deleted inserted replaced
9575:635b6c5a36e1 9576:be9f8e7e42e0
282 # append the cross reference table (PDF1.4Ref(p64)) 282 # append the cross reference table (PDF1.4Ref(p64))
283 xref = self.oT.xref() 283 xref = self.oT.xref()
284 284
285 # end the file with the trailer (PDF1.4Ref(p67)) 285 # end the file with the trailer (PDF1.4Ref(p67))
286 buffer = ( 286 buffer = (
287 "trailer\n<< /Size {0:d} /Root {1:d} 0 R\n>>\nstartxref\n{2:d}\n" "%%EOF\n" 287 "trailer\n<< /Size {0:d} /Root {1:d} 0 R\n>>\nstartxref\n{2:d}\n%%EOF\n"
288 ).format(self.oT.index, catalogRef, xref) 288 ).format(self.oT.index, catalogRef, xref)
289 self.oT.write(buffer) 289 self.oT.write(buffer)
290 290
291 def add(self, ch, style_): 291 def add(self, ch, style_):
292 """ 292 """

eric ide

mercurial