code: def serve_pdf_from_html(html: str,
                          offered_filename: str = "test.pdf",
                          **kwargs) -> HttpResponse:
      
      pdf = get_pdf_from_html(html, **kwargs)
      return serve_buffer(pdf,
                          offered_filename=offered_filename,
                          content_type=MimeType.PDF,
                          as_attachment=False,
                          as_inline=True)
docs: Same args as ``pdf_from_html()``.
      WATCH OUT: may not apply e.g. wkhtmltopdf options as you'd wish.