by langgenius · v0.0.7
Generate PDFs and images from templates using APITemplate.io. Create professional documents, invoices, certificates, and images through template-based generation.
This community listing does not yet include every recommended support, privacy, pricing, and permission disclosure. Review the available package permissions before installing.
Available inside your emploidai workspace after installation.
Available inside your emploidai workspace after installation.
This plugin integrates APITemplate.io's document and image generation capabilities with Dify, allowing you to create professional PDFs, images, and documents from templates or HTML content directly from your Dify applications.
You'll need an APITemplate.io API key to use this plugin:
Important: Your API key grants access to your APITemplate.io account and usage quotas. Keep it secure and never share it publicly.
The plugin provides the following tools that can be used in your Dify applications:
Generates a PDF document using a pre-designed template from your APITemplate.io account.
Required parameters:
template_id: The unique identifier of the PDF template (found in your APITemplate.io dashboard)json_data: JSON object containing the data to populate the template fieldsOptional parameters:
filename: Custom filename for the generated PDF (must end with .pdf)Example:
Create a PDF using template 79667b2b1876e347 with data {"name": "John Doe", "invoice_number": "INV-001", "amount": "$1,000"}
Generates JPEG and PNG images from a template with custom data.
Required parameters:
template_id: The unique identifier of the image templateoverrides_data: JSON object with overrides array containing modifications for template elementsOptional parameters:
output_image_type: Image format ("all", "jpegOnly", or "pngOnly")Example:
Create an image using template abc123 with overrides {"overrides": [{"name": "text_1", "text": "Hello World"}]}
Converts HTML content with optional CSS styling to a PDF document.
Required parameters:
html_body: HTML content for the PDF body (supports Jinja2 templating)Optional parameters:
css_styles: CSS styles to apply to the PDFtemplate_data: JSON data for Jinja2 template variablesfilename: Custom filename for the generated PDFExample:
Create a PDF from HTML content "<h1>Invoice {{invoice_number}}</h1>" with data {"invoice_number": "INV-001"}
Captures a web page and converts it to PDF format.
Required parameters:
url: Complete URL of the web page to convert (must include http:// or https://)Optional parameters:
paper_size: Paper size (A4, Letter, Legal, etc.)orientation: Page orientation ("1" for portrait, "2" for landscape)filename: Custom filename for the generated PDFExample:
Create a PDF from the URL https://example.com/report with A4 paper size
Removes a generated PDF or image from APITemplate.io CDN.
Required parameters:
transaction_ref: Transaction reference ID returned when the file was createdExample:
Delete the object with transaction reference 1618d386-2343-3d234-b9c7-99c82bb9f104
Retrieves comprehensive account information including subscription status, quotas, and usage.
No parameters required.
Example:
Get my APITemplate.io account information
Lists all generated PDFs and images with filtering and pagination options.
Optional parameters:
limit: Number of records to retrieve (default: 300, max: 300)offset: Number of records to skip for pagination (default: 0)transaction_type: Filter by file type ("PDF", "JPEG", or "MERGE")Example:
List the last 50 PDF files from my account
To use template-based generation:
If you encounter issues with the plugin:
PDF Generation:
Image Generation:
Usage limits depend on your APITemplate.io subscription plan:
Check your account information using the "Get Account Information" tool to monitor usage.