code: def get_pdf_from_html(html: str,
                        header_html: str = None,
                        footer_html: str = None,
                        wkhtmltopdf_filename: str = _WKHTMLTOPDF_FILENAME,
                        wkhtmltopdf_options: Dict[str, Any] = None,
                        file_encoding: str = "utf-8",
                        debug_options: bool = False,
                        debug_content: bool = False,
                        debug_wkhtmltopdf_args: bool = True,
                        fix_pdfkit_encoding_bug: bool = None,
                        processor: str = _DEFAULT_PROCESSOR) -> bytes:
      
      result = make_pdf_from_html(
          on_disk=False,
          html=html,
          header_html=header_html,
          footer_html=footer_html,
          wkhtmltopdf_filename=wkhtmltopdf_filename,
          wkhtmltopdf_options=wkhtmltopdf_options,
          file_encoding=file_encoding,
          debug_options=debug_options,
          debug_content=debug_content,
          debug_wkhtmltopdf_args=debug_wkhtmltopdf_args,
          fix_pdfkit_encoding_bug=fix_pdfkit_encoding_bug,
          processor=processor,
      )  # type: bytes
      return result
docs: Takes HTML and returns a PDF.
  
      See the arguments to :func:`make_pdf_from_html` (except ``on_disk``).
  
      Returns:
          the PDF binary as a ``bytes`` object