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: Set up printing of a document. (Write Postscript DSC header.)
docstr_tok: ["Set","up","printing","of","a","document",".","(","Write","Postscript","DSC","header",".",")"]
code: def begin_document(self, id=None):
      """Set up printing of a document. (Write Postscript DSC header.)"""
      # FIXME: incomplete
      self._fp_write(
          "%!PS-Adobe-3.0\n"
          "save\n"
          "/showpage { } def\n"
          "%%EndComments\n"
          "%%BeginDocument\n"
      )
      # self._fp_write(ERROR_PS)  # debugging!
      self._fp_write(EDROFF_PS)
      self._fp_write(VDI_PS)
      self._fp_write("%%EndProlog\n")
      self.isofont = {}
  
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 3 for calling the PSDraw obj's underlying member method code with example usage: obj.begin_document(id) without return types