Remix Utils - v9.3.1
    Preparing search index...
    • Create a response with a PDF file response. It receives a string with the PDF content and set the Content-Type header to application/pdf; charset=utf-8 always.

      This is useful to dynamically create a PDF file from a Resource Route.

      Parameters

      • content: BodyInit | null | undefined
      • init: number | ResponseInit = {}

      Returns Response

      export async function loader({ request }: Route.LoaderArgs) {
      return pdf(await generatePDF(request.formData()));
      }