PolyDoc
v0.1.10HTML/URL to PDF, screenshots, e-invoices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
polydoc_html_to_pdf PolyDoc: HTML/URL to PDF
Convert a web page, inline HTML, or a saved PolyDoc template to a PDF. Provide exactly one source: url, html, or templateId (with optional templateData). By default the PDF is written to the configured output directory and the file path is returned. Note: HTML that loads scripts from a CDN can hang the renderer; prefer self-contained HTML.
| Parameter | Type | Description |
|---|---|---|
advanced | object | Raw fields deep-merged into the request body for any API option not exposed here (e.g. pdf.watermark, render, request). |
delivery | string | download writes the file locally; cloudStorage uploads to a presigned URL; webhook posts the file to a URL. |
filename | string | Output filename. Written under the configured output directory (basename only). |
html | string | Inline HTML to render. Provide exactly one of url, html, or templateId. |
pdfOptions | object | Page layout and PDF conformance options. |
presignedUrl | string | Presigned PUT URL, required when delivery is cloudStorage. |
returnBase64 | boolean | Also return the file as base64 in structured output (heavy; for clients without a filesystem). |
sandbox | boolean | Override the server default for this call. Sandbox output is watermarked and rate-limited (about 5 requests/sec). |
tag | string | Label for logging and analytics (max 30 chars). |
templateData | object | Variables for the Liquid template (used with templateId). |
templateId | string | ID of a saved PolyDoc template. Provide exactly one of url, html, or templateId. |
timeout | integer | Conversion timeout in milliseconds. |
url | string | Public URL to render. Provide exactly one of url, html, or templateId. |
webhook | object | Webhook config, required when delivery is webhook. Shape: { url, async?, method?, headers?, retries? }. |
polydoc_screenshot PolyDoc: Capture Screenshot
Capture a screenshot of a web page, inline HTML, or a saved PolyDoc template. Provide exactly one source: url, html, or templateId. Returns PNG/JPEG/WebP written to the configured output directory, plus an inline image preview when small enough to display.
| Parameter | Type | Description |
|---|---|---|
advanced | object | Raw fields deep-merged into the request body for any API option not exposed here (e.g. pdf.watermark, render, request). |
delivery | string | download writes the file locally; cloudStorage uploads to a presigned URL; webhook posts the file to a URL. |
filename | string | Output filename. Written under the configured output directory (basename only). |
html | string | Inline HTML to render. Provide exactly one of url, html, or templateId. |
presignedUrl | string | Presigned PUT URL, required when delivery is cloudStorage. |
returnBase64 | boolean | Also return the file as base64 in structured output (heavy; for clients without a filesystem). |
sandbox | boolean | Override the server default for this call. Sandbox output is watermarked and rate-limited (about 5 requests/sec). |
screenshotOptions | object | Screenshot capture options. |
tag | string | Label for logging and analytics (max 30 chars). |
templateData | object | Variables for the Liquid template (used with templateId). |
templateId | string | ID of a saved PolyDoc template. Provide exactly one of url, html, or templateId. |
timeout | integer | Conversion timeout in milliseconds. |
url | string | Public URL to render. Provide exactly one of url, html, or templateId. |
webhook | object | Webhook config, required when delivery is webhook. Shape: { url, async?, method?, headers?, retries? }. |
polydoc_generate_einvoice PolyDoc: Generate E-Invoice
Generate an EU electronic invoice as a hybrid PDF/A-3 (ZUGFeRD or Factur-X): a human-readable PDF with embedded structured invoice XML. Provide the visible document via one source (html, templateId, or url) and the structured data via the invoice object. For EN 16931 (profile en16931), include a dueDate or paymentTerms (rule BR-CO-25), a seller taxId when a line uses VAT category S, a taxSummary, and totals where totalNetAmount + totalTaxAmount = totalGrossAmount.
polydoc_test_credentials PolyDoc: Test Credentials
Verify the configured PolyDoc API key by running a minimal sandbox render. Reports whether the key is accepted; never draws production quota.