APITemplate.io
App · 5 actions
Generate PDFs and images from templates, HTML, or a web page.
Actions
| Action | What it does |
|---|---|
| Create image from template | Fill an image template with your data. |
| Create PDF from a URL | Render a web page into a PDF. |
| Create PDF from HTML | Turn HTML markup into a PDF. |
| Create PDF from template | Fill a PDF template with your data. |
| List templates | Show the saved PDF and image templates. |
Create image from template
Fill an image template with your data.
Inputs
- Template
template_idtextRequired - Choose the saved template.
- Overrides
overrideslistRequired - 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
- URL
urltextRequired - 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
- Body
bodytextRequired - Enter the HTML document.
- Css
csstext - 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
- Template
template_idtextRequired - Choose the saved template.
- Data
dataobjectRequired - 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"
}
]
}
}