MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / writeTrailer

Method writeTrailer

lib/matplotlib/backends/backend_pdf.py:1861–1870  ·  view source on GitHub ↗

Write out the PDF trailer.

(self)

Source from the content-addressed store, hash-verified

1859 self.writeObject(self.infoObject, self.infoDict)
1860
1861 def writeTrailer(self):
1862 """Write out the PDF trailer."""
1863
1864 self.write(b"trailer\n")
1865 self.write(pdfRepr(
1866 {'Size': len(self.xrefTable),
1867 'Root': self.rootObject,
1868 'Info': self.infoObject}))
1869 # Could add 'ID'
1870 self.write(b"\nstartxref\n%d\n%%%%EOF\n" % self.startxref)
1871
1872
1873class RendererPdf(_backend_pdf_ps.RendererPDFPSBase):

Callers 1

finalizeMethod · 0.95

Calls 2

writeMethod · 0.95
pdfReprFunction · 0.85

Tested by

no test coverage detected