class_docstr: Sets up printing to the given file. If **fp** is omitted,
  :py:attr:`sys.stdout` is assumed.
class_docstr_tok: ["Sets","up","printing","to","the","given","file",".","If","*","*","fp","*","*","is","omitted",",",":","py",":","attr",":","`","sys.stdout","`","is","assumed","."]
docstr: Ends printing. (Write Postscript DSC footer.)
docstr_tok: ["Ends","printing",".","(","Write","Postscript","DSC","footer",".",")"]
code: def end_document(self):
      """Ends printing. (Write Postscript DSC footer.)"""
      self._fp_write("%%EndDocument\nrestore showpage\n%%End\n")
      if hasattr(self.fp, "flush"):
          self.fp.flush()
  
file_path: catboost/contrib/python/Pillow/py2/PIL/PSDraw.py
imports: import sys
  from .None import EpsImagePlugin
  from ._util import py3
label_desc: Use image node_id 4 for calling the PSDraw obj's underlying member method code with example usage: obj.end_document() without return types