Volver al catálogo

PDFgen

pdfgen

PDFgen creates PDFs from reusable templates, HTML, Markdown, or natural-language prompts and manages account templates and usage logs.

Acciones
8
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (8)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create TemplatePDFGEN_CREATE_TEMPLATEAcción

Create a reusable HTML template for later PDF generation.

Parámetros de entrada

  • namestringObligatorio

    Human-readable template name.

  • enginestringenum

    Template rendering engine.

    handlebarslegacy
  • contentstringObligatorio

    HTML template content, optionally containing Handlebars tokens.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete TemplatePDFGEN_DELETE_TEMPLATEAcción

Permanently delete one saved template owned by the connected account.

Parámetros de entrada

  • template_idstringObligatorio

    ID of the template to permanently delete.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate PDFPDFGEN_GENERATE_PDFAcción

Generate a PDF from exactly one saved template, HTML document, Markdown document, or AI prompt and return a temporary download URL.

Parámetros de entrada

  • dataobject

    Values to merge into a saved template or raw HTML. Valid only with template_id or html.

  • htmlstring

    Raw HTML to render, optionally with Handlebars tokens. Provide exactly one PDF source field.

  • enginestringenum

    Template engine for raw HTML only. Omit to use PDFgen's handlebars default.

    handlebarslegacy
  • formatstringenum

    PDF page size.

    A4LetterLegalA3A5Tabloid
  • promptstring

    Plain-English document description for AI-generated HTML. Provide exactly one PDF source field; prompt generation costs twice the normal page rate.

  • markdownstring

    Markdown to render with PDFgen typography. Provide exactly one PDF source field.

  • passwordstring

    Password for the generated PDF; required when protect_pdf is true and otherwise omitted.

  • file_namestring

    Output filename without the .pdf extension.

  • expiry_timenumber

    Download URL lifetime in minutes, from 1 to 10080.

  • orientationstringenum

    PDF page orientation.

    portraitlandscape
  • protect_pdfboolean

    Whether to password-protect the generated PDF.

  • template_idstring

    Saved template ID to render. Provide exactly one PDF source field.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get AccountPDFGEN_GET_ACCOUNTAcción

Return the connected PDFgen account, organization, plan, and current credit usage.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get TemplatePDFGEN_GET_TEMPLATEAcción

Get one saved PDFgen template, including its complete HTML content.

Parámetros de entrada

  • template_idstringObligatorio

    ID of the template to retrieve.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List TemplatesPDFGEN_LIST_TEMPLATESAcción

List saved PDF templates owned by the connected account and return one page with a continuation cursor.

Parámetros de entrada

  • limitinteger

    Maximum templates to return in this page.

  • next_cursorstring

    Continuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Usage LogsPDFGEN_LIST_USAGE_LOGSAcción

List 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.

Parámetros de entrada

  • limitinteger

    Maximum usage log records to return in this page.

  • next_cursorstring

    Continuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update TemplatePDFGEN_UPDATE_TEMPLATEAcción

Partially update a saved template's name, HTML content, or rendering engine without replacing omitted fields.

Parámetros de entrada

  • namestring

    New human-readable name; omit to retain the current name.

  • enginestringenum

    New rendering engine; omit to retain the current engine.

    handlebarslegacy
  • contentstring

    New HTML template content; omit to retain the current content.

  • template_idstringObligatorio

    ID of the saved template to update.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not