Skip to main content
PDFgen logo
  • Category: documents
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 8
  • Triggers: 0
  • Slug: PDFGEN
  • Version: 00000000_00

Tools

Slug: PDFGEN_CREATE_TEMPLATECreate a reusable HTML template for later PDF generation.

Input Parameters

string
required
Human-readable template name.
string ("handlebars" | "legacy")
Template rendering engine.
string
required
HTML template content, optionally containing Handlebars tokens.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_DELETE_TEMPLATEPermanently delete one saved template owned by the connected account.

Input Parameters

string
required
ID of the template to permanently delete.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_GENERATE_PDFGenerate a PDF from exactly one saved template, HTML document, Markdown document, or AI prompt and return a temporary download URL.

Input Parameters

object
Values to merge into a saved template or raw HTML. Valid only with template_id or html.
string
Raw HTML to render, optionally with Handlebars tokens. Provide exactly one PDF source field.
string ("handlebars" | "legacy")
Template engine for raw HTML only. Omit to use PDFgen’s handlebars default.
string ("A4" | "Letter" | "Legal" | "A3" | "A5" | "Tabloid")
PDF page size.
string
Plain-English document description for AI-generated HTML. Provide exactly one PDF source field; prompt generation costs twice the normal page rate.
string
Markdown to render with PDFgen typography. Provide exactly one PDF source field.
string
Password for the generated PDF; required when protect_pdf is true and otherwise omitted.
string
Output filename without the .pdf extension.
number
Download URL lifetime in minutes, from 1 to 10080.
string ("portrait" | "landscape")
PDF page orientation.
boolean
Whether to password-protect the generated PDF.
string
Saved template ID to render. Provide exactly one PDF source field.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_GET_ACCOUNTReturn the connected PDFgen account, organization, plan, and current credit usage.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_GET_TEMPLATEGet one saved PDFgen template, including its complete HTML content.

Input Parameters

string
required
ID of the template to retrieve.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_LIST_TEMPLATESList saved PDF templates owned by the connected account and return one page with a continuation cursor.

Input Parameters

integer
Maximum templates to return in this page.
string
Continuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_LIST_USAGE_LOGSList recent PDFgen API calls for auditing, billing inspection, and generation troubleshooting. Returns one page with a continuation cursor. Usage logs are eventually consistent, so a just-completed call may be absent; retry after a short delay before concluding that it was not recorded.

Input Parameters

integer
Maximum usage log records to return in this page.
string
Continuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: PDFGEN_UPDATE_TEMPLATEPartially update a saved template’s name, HTML content, or rendering engine without replacing omitted fields.

Input Parameters

string
New human-readable name; omit to retain the current name.
string ("handlebars" | "legacy")
New rendering engine; omit to retain the current engine.
string
New HTML template content; omit to retain the current content.
string
required
ID of the saved template to update.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not