tailprint

v1.4.0
tailprint Checked 1 day ago Published 19 days ago

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

ParameterTypeDescription
dataobjectJSON data for template_id (e.g. seller, buyer and items for invoice-modern). Validation errors name the offending fields.
delay_msnumberOptional delay in milliseconds before rendering (max 5000)
footer_htmlstringOptional HTML template for page footer (e.g. with pageNumber / totalPages)
formatstringPaper format: "A4" or "Letter" (default: "A4")
header_htmlstringOptional HTML template for page header (e.g. with pageNumber / totalPages)
htmlstringHTML markup to render. Tailwind CSS utility classes are supported automatically. Provide exactly one of html, url or template_id.
landscapebooleanWhether to generate PDF in landscape orientation (default: false)
passwordstringOptional password to encrypt the PDF with AES-256
print_backgroundbooleanWhether to print CSS backgrounds and colors (default: true)
template_idstringHosted template id: invoice-modern, receipt-minimal, certificate-classic or report-executive. Requires "data". Provide exactly one of html, url or template_id.
urlstringPublic web URL to render directly to PDF (e.g. https://news.ycombinator.com). Provide exactly one of html, url or template_id.
wait_forstringOptional 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.

ParameterTypeDescription
template_id *stringTemplate 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.

ParameterTypeDescription
template_id *stringTemplate identifier to render
landscapebooleanOrientation override (landscape: true or false)
output_formatstringOutput format: "pdf" for documents (default: pdf)
passwordstringOptional AES-256 password to encrypt the PDF document
variablesobjectKey-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.

ParameterTypeDescription
pdf_base64 *stringBase64-encoded PDF string (e.g. output from render_pdf or render_template)
watermark_text *stringWatermark text to stamp diagonally across each page (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY")
colorstringWatermark color: "red", "gray", or "blue" (default: "red")
font_sizenumberFont size of watermark text in points (default: 54)
opacitynumberWatermark 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).

ParameterTypeDescription
buyer_name *stringCustomer/buyer company or client name
invoice_number *stringUnique invoice reference number (e.g. "INV-2026-0042")
line_items *arrayList of invoice items or billed services
seller_name *stringSupplier/seller company name
buyer_citystringBuyer city
buyer_countrystring2-letter ISO country code of buyer (e.g. DE, FR, DK)
buyer_emailstringBuyer contact/AP email
buyer_postcodestringBuyer postal code
buyer_streetstringBuyer street address
buyer_vat_idstringBuyer VAT ID / Tax number (e.g. "DE123456789")
currencystringISO 4217 currency code (e.g. EUR, DKK, USD, SEK)
due_datestringDue payment date (YYYY-MM-DD)
notesstringOptional payment terms or notes
payment_bicstringBank SWIFT/BIC code
payment_ibanstringBank transfer IBAN for direct wire payment
profilestringFactur-X compliance profile level
seller_citystringSeller city
seller_countrystring2-letter ISO country code of seller (e.g. DK, DE, FR, NL)
seller_emailstringSeller billing email
seller_postcodestringSeller postal code
seller_streetstringSeller street address
seller_vat_idstringSupplier 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.

ParameterTypeDescription
pdfs *arrayArray of at least 2 PDF inputs (base64 data URI or public http/https URLs) to merge in order
output_filenamestringFilename 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.

ParameterTypeDescription
pages *stringComma-separated page numbers or ranges to extract (e.g. "1-3, 5, 8-10")
pdf *stringSource PDF document as a base64 data URI or public http/https URL
output_filenamestringOutput filename (default: "split.pdf")

fill_pdf_form

Fills interactive PDF forms (AcroForms) with text, numbers, or checkboxes, with optional form flattening.

ParameterTypeDescription
fields *objectKey-value map of form field names to their values (e.g. {"client_name": "Acme", "agreed": true})
pdf *stringInteractive PDF document as a base64 data URI or public http/https URL
flattenbooleanWhether to flatten form fields to prevent further editing (default: true)
output_filenamestringOutput 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.

ParameterTypeDescription
pdf *stringSource PDF document as base64 data URI or public http/https URL
output_filenamestringOutput 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.

ParameterTypeDescription
markdown *stringMarkdown text containing slides separated by "---". Use "# Title" for slide header, "## Subtitle", and bullet points.
authorstringAuthor or presenter name
themestringSlide theme: "dark", "midnight", "gradient", or "minimal" (default: "dark")
titlestringKeynote or presentation title