PDFgen
pdfgenPDFgen creates PDFs from reusable templates, HTML, Markdown, or natural-language prompts and manages account templates and usage logs.
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ónCreate a reusable HTML template for later PDF generation.
PDFGEN_CREATE_TEMPLATEAcciónCreate a reusable HTML template for later PDF generation.
Parámetros de entrada
namestringObligatorioHuman-readable template name.
enginestringenumTemplate rendering engine.
handlebarslegacycontentstringObligatorioHTML template content, optionally containing Handlebars tokens.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete TemplatePDFGEN_DELETE_TEMPLATEAcciónPermanently delete one saved template owned by the connected account.
PDFGEN_DELETE_TEMPLATEAcciónPermanently delete one saved template owned by the connected account.
Parámetros de entrada
template_idstringObligatorioID of the template to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate PDFPDFGEN_GENERATE_PDFAcciónGenerate a PDF from exactly one saved template, HTML document, Markdown document, or AI prompt and return a temporary download URL.
PDFGEN_GENERATE_PDFAcciónGenerate a PDF from exactly one saved template, HTML document, Markdown document, or AI prompt and return a temporary download URL.
Parámetros de entrada
dataobjectValues to merge into a saved template or raw HTML. Valid only with template_id or html.
htmlstringRaw HTML to render, optionally with Handlebars tokens. Provide exactly one PDF source field.
enginestringenumTemplate engine for raw HTML only. Omit to use PDFgen's handlebars default.
handlebarslegacyformatstringenumPDF page size.
A4LetterLegalA3A5TabloidpromptstringPlain-English document description for AI-generated HTML. Provide exactly one PDF source field; prompt generation costs twice the normal page rate.
markdownstringMarkdown to render with PDFgen typography. Provide exactly one PDF source field.
passwordstringPassword for the generated PDF; required when protect_pdf is true and otherwise omitted.
file_namestringOutput filename without the .pdf extension.
expiry_timenumberDownload URL lifetime in minutes, from 1 to 10080.
orientationstringenumPDF page orientation.
portraitlandscapeprotect_pdfbooleanWhether to password-protect the generated PDF.
template_idstringSaved template ID to render. Provide exactly one PDF source field.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get AccountPDFGEN_GET_ACCOUNTAcciónReturn the connected PDFgen account, organization, plan, and current credit usage.
PDFGEN_GET_ACCOUNTAcciónReturn the connected PDFgen account, organization, plan, and current credit usage.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get TemplatePDFGEN_GET_TEMPLATEAcciónGet one saved PDFgen template, including its complete HTML content.
PDFGEN_GET_TEMPLATEAcciónGet one saved PDFgen template, including its complete HTML content.
Parámetros de entrada
template_idstringObligatorioID of the template to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List TemplatesPDFGEN_LIST_TEMPLATESAcciónList saved PDF templates owned by the connected account and return one page with a continuation cursor.
PDFGEN_LIST_TEMPLATESAcciónList saved PDF templates owned by the connected account and return one page with a continuation cursor.
Parámetros de entrada
limitintegerMaximum templates to return in this page.
next_cursorstringContinuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Usage LogsPDFGEN_LIST_USAGE_LOGSAcciónList 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.
PDFGEN_LIST_USAGE_LOGSAcciónList 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
limitintegerMaximum usage log records to return in this page.
next_cursorstringContinuation cursor from a previous response; omit for the first page and pass it back unchanged to fetch the next page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update TemplatePDFGEN_UPDATE_TEMPLATEAcciónPartially update a saved template's name, HTML content, or rendering engine without replacing omitted fields.
PDFGEN_UPDATE_TEMPLATEAcciónPartially update a saved template's name, HTML content, or rendering engine without replacing omitted fields.
Parámetros de entrada
namestringNew human-readable name; omit to retain the current name.
enginestringenumNew rendering engine; omit to retain the current engine.
handlebarslegacycontentstringNew HTML template content; omit to retain the current content.
template_idstringObligatorioID of the saved template to update.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not