tailprint
v1.4.0Developer-First PDF & Document Engine, TypeScript SDK & MCP Server (tailprint.com)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
render_pdf
Converts HTML with full Tailwind CSS classes, a public URL, or a hosted template (template_id + JSON data, e.g. "invoice-modern") into a pixel-perfect, vector PDF document with Smart Pagination Shield. Returns a hosted CDN link and base64 data URI.
| Parameter | Type | Description |
|---|---|---|
data | object | JSON data for template_id (e.g. seller, buyer and items for invoice-modern). Validation errors name the offending fields. |
delay_ms | number | Optional delay in milliseconds before rendering (max 5000) |
footer_html | string | Optional HTML template for page footer (e.g. with pageNumber / totalPages) |
format | string | Paper format: "A4" or "Letter" (default: "A4") |
header_html | string | Optional HTML template for page header (e.g. with pageNumber / totalPages) |
html | string | HTML markup to render. Tailwind CSS utility classes are supported automatically. Provide exactly one of html, url or template_id. |
landscape | boolean | Whether to generate PDF in landscape orientation (default: false) |
password | string | Optional password to encrypt the PDF with AES-256 |
print_background | boolean | Whether to print CSS backgrounds and colors (default: true) |
template_id | string | Hosted template id: invoice-modern, receipt-minimal, certificate-classic or report-executive. Requires "data". Provide exactly one of html, url or template_id. |
url | string | Public web URL to render directly to PDF (e.g. https://news.ycombinator.com). Provide exactly one of html, url or template_id. |
wait_for | string | Optional CSS selector to wait for before rendering |
list_templates
Returns the catalog of available pre-designed Tailwind CSS document templates (Invoices, EU Factur-X, Certificates, Executive Reports, Resumes, Shipping Labels, Event Passes, POS Receipts, Quotes, NDAs, Statements, Presentations, Contracts).
get_template_source
Retrieves the full Tailwind CSS HTML source code of a document template by ID, allowing an AI agent to customize data and render it with render_pdf.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | Template identifier |
render_template
Renders a pre-designed Tailwind CSS document template directly with optional variable data substitution. Ideal for generating invoices, receipts, contracts, and certificates without managing raw HTML markup.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | Template identifier to render |
landscape | boolean | Orientation override (landscape: true or false) |
output_format | string | Output format: "pdf" for documents (default: pdf) |
password | string | Optional AES-256 password to encrypt the PDF document |
variables | object | Key-value pairs to replace in template HTML. Replaces {{key}} tags or exact text matches. |
stamp_pdf
Applies a diagonal semi-transparent watermark or status stamp (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY") across all pages of an existing vector PDF using pdf-lib.
| Parameter | Type | Description |
|---|---|---|
pdf_base64 * | string | Base64-encoded PDF string (e.g. output from render_pdf or render_template) |
watermark_text * | string | Watermark text to stamp diagonally across each page (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY") |
color | string | Watermark color: "red", "gray", or "blue" (default: "red") |
font_size | number | Font size of watermark text in points (default: 54) |
opacity | number | Watermark opacity from 0.05 (subtle) to 0.5 (prominent) - default: 0.15 |
generate_einvoice
Generates a legally compliant European hybrid electronic invoice (Factur-X / ZUGFeRD 2.2 / EN 16931). Renders a beautiful visual PDF and embeds machine-readable CrossIndustryInvoice XML (/EmbeddedFiles) for automated ingestion by ERP and accounting platforms (DATEV, SAP, Chorus Pro, Dinero, Billy).
| Parameter | Type | Description |
|---|---|---|
buyer_name * | string | Customer/buyer company or client name |
invoice_number * | string | Unique invoice reference number (e.g. "INV-2026-0042") |
line_items * | array | List of invoice items or billed services |
seller_name * | string | Supplier/seller company name |
buyer_city | string | Buyer city |
buyer_country | string | 2-letter ISO country code of buyer (e.g. DE, FR, DK) |
buyer_email | string | Buyer contact/AP email |
buyer_postcode | string | Buyer postal code |
buyer_street | string | Buyer street address |
buyer_vat_id | string | Buyer VAT ID / Tax number (e.g. "DE123456789") |
currency | string | ISO 4217 currency code (e.g. EUR, DKK, USD, SEK) |
due_date | string | Due payment date (YYYY-MM-DD) |
notes | string | Optional payment terms or notes |
payment_bic | string | Bank SWIFT/BIC code |
payment_iban | string | Bank transfer IBAN for direct wire payment |
profile | string | Factur-X compliance profile level |
seller_city | string | Seller city |
seller_country | string | 2-letter ISO country code of seller (e.g. DK, DE, FR, NL) |
seller_email | string | Seller billing email |
seller_postcode | string | Seller postal code |
seller_street | string | Seller street address |
seller_vat_id | string | Supplier VAT ID / Tax number (e.g. "DK12345678" or "DE987654321") |
merge_pdfs
Merges two or more PDF documents (supplied as base64 strings or public URLs) into a single unified vector PDF.
| Parameter | Type | Description |
|---|---|---|
pdfs * | array | Array of at least 2 PDF inputs (base64 data URI or public http/https URLs) to merge in order |
output_filename | string | Filename for the merged document (default: "merged.pdf") |
split_pdf
Extracts specific pages or page ranges (e.g. "1-3, 5, 8-10") from an existing PDF document into a new PDF.
| Parameter | Type | Description |
|---|---|---|
pages * | string | Comma-separated page numbers or ranges to extract (e.g. "1-3, 5, 8-10") |
pdf * | string | Source PDF document as a base64 data URI or public http/https URL |
output_filename | string | Output filename (default: "split.pdf") |
fill_pdf_form
Fills interactive PDF forms (AcroForms) with text, numbers, or checkboxes, with optional form flattening.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Key-value map of form field names to their values (e.g. {"client_name": "Acme", "agreed": true}) |
pdf * | string | Interactive PDF document as a base64 data URI or public http/https URL |
flatten | boolean | Whether to flatten form fields to prevent further editing (default: true) |
output_filename | string | Output filename (default: "filled_form.pdf") |
compress_pdf
Compacts and shrinks PDF file size by bundling internal PDF objects into compressed streams and stripping duplicate structures.
| Parameter | Type | Description |
|---|---|---|
pdf * | string | Source PDF document as base64 data URI or public http/https URL |
output_filename | string | Output filename (default: "compressed.pdf") |
render_presentation
Converts Markdown slides (separated by "---") into a widescreen 16:9 presentation vector PDF (1920x1080) with slide numbers and modern Tailwind styling. Returns an inline cover preview and hosted PDF link.
| Parameter | Type | Description |
|---|---|---|
markdown * | string | Markdown text containing slides separated by "---". Use "# Title" for slide header, "## Subtitle", and bullet points. |
author | string | Author or presenter name |
theme | string | Slide theme: "dark", "midnight", "gradient", or "minimal" (default: "dark") |
title | string | Keynote or presentation title |