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 """ |