PDF Generation from template in Deno

How to generate PDF from a template using TTA in Deno.

Generate PDF from a template in Deno

import { TextToAnything } from "@texttoanything/deno";

const TTA = new TextToAnything(/*API token here*/);

const PDF = await TTA.generatePDFFromTemplate("test.pdf", TEMPLATE_ID, { 
  name: "World!" 
});

Use TTA's PDF generation in Deno to create PDFs from a template. You can configure the template in our dashboard.

The generated PDF file will be returned as a Blob.