APITemplate.io

App · 5 actions

Generate PDFs and images from templates, HTML, or a web page.

Actions

ActionWhat it does
Create image from templateFill an image template with your data.
Create PDF from a URLRender a web page into a PDF.
Create PDF from HTMLTurn HTML markup into a PDF.
Create PDF from templateFill a PDF template with your data.
List templatesShow the saved PDF and image templates.

Create image from template

Fill an image template with your data.

Inputs

Templatetemplate_idtextRequired
Choose the saved template.
OverridesoverrideslistRequired
Enter the template layers and their overrides.

Outputs

dataobject
The response from APITemplate.io.
Example output
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}

Create PDF from a URL

Render a web page into a PDF.

Inputs

URLurltextRequired
Enter the URL of the page to render.

Outputs

dataobject
The response from APITemplate.io.
Example output
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}

Create PDF from HTML

Turn HTML markup into a PDF.

Inputs

BodybodytextRequired
Enter the HTML document.
Csscsstext
Enter CSS styles.

Outputs

dataobject
The response from APITemplate.io.
Example output
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}

Create PDF from template

Fill a PDF template with your data.

Inputs

Templatetemplate_idtextRequired
Choose the saved template.
DatadataobjectRequired
Map template field names to their values.

Outputs

dataobject
The response from APITemplate.io.
Example output
{
  "data": {
    "download_url": "example",
    "status": "example",
    "transaction_ref": "example"
  }
}

List templates

Show the saved PDF and image templates.

Inputs

None.

Outputs

dataobject
The response from APITemplate.io.
Example output
{
  "data": {
    "status": "example",
    "templates": [
      {
        "name": "example",
        "template_id": "example"
      }
    ]
  }
}

On this page