code: def pdfdump(self, filename = None, **kargs):
          
          d = self._dump_document(**kargs)
          if filename is None:
              filename = get_temp_file(autoext=".pdf")
              d.writePDFfile(filename)
              subprocess.Popen([conf.prog.pdfreader, filename+".pdf"])
          else:
              d.writePDFfile(filename)
          print
docs: Creates a PDF file with a psdump of every packet
          filename: name of the file to write to. If empty, a temporary file is used and
                    conf.prog.pdfreader is called