Koskamo

ReflowPDF MCP

An official MCP server by ReflowPDF that allows AI assistants to generate, fill, and edit paged, tagged PDFs from HTML/CSS or templates. It supports rendering documents, filling templates with data, listing available templates, and checking document structure, enabling a workflow where users can edit the generated PDF in the ReflowPDF editor.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

ReflowPDF MCP logo, by ReflowPDFVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-12-01Operated by ReflowPDF
MCP endpoint (Streamable HTTP)
https://app.reflowpdf.com/mcp
Vendor documentation

What its tools do

13 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

13 of 13 have a description · 13 of 13 declare behavior hints · 12 of 12 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to reflowpdf.com ·
  • Passed Endpoint is on the registry namespace domain ·
  • Availability 1 of 1 checks passed in 30 days

What you can do with it

  • Generate an invoice or contract from a chat request
  • Fill a template with JSON data and print as PDF
  • List available document templates
  • Check document structure and page layout

Source and maintenance

Vendor evidenceRegistry 1.0.1
Maintenance checked

Protocol and capabilities

Server
reflowpdf 7b6966b331b9
MCP protocol negotiated in check
2025-11-25
Tools
13 advertised
Resources
9 advertised
Resource templates
0 advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  },
  "resources": {
    "subscribe": false,
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

ReflowPDF prints HTML and CSS as paged PDF documents (page numbers, headers and footers, tables of contents, footnotes, multi-column text, drop caps, page decorations and watermarks, full-bleed covers with crop marks, charts, QR codes and barcodes, fillable forms; tagged PDF/UA). Scripts do not run unless options.javascript is set. read_guide describes what the engine prints (topic "html": paper, headers and footers, page numbers, fonts, images). A gallery template (list_templates) gives a ready, tested layout for common documents such as invoices, contracts and certificates; render_template fills it with the person's data. A print returns a PDF link (24 hours) and the document's edit link, each working exactly as given; where the client shows the ReflowPDF card, the result appears in it with the printed pages and Download and Edit buttons. get_document returns a document as it is now, with the person's edits in the editor, and update_document changes it by its document_id.

Tools

13 advertised

render_pdf — Print HTML to PDF
Advertised by the server during the last successful anonymous check.
Open-world

Lays out a whole HTML document (with its CSS) as paged print and returns a download link to the PDF, valid 24 hours, and the document's edit link in the ReflowPDF editor. Use @page for paper and margins, margin boxes for headers, footers and page numbers; scripts do not run unless options.javascript is set; read_guide topic "html" describes what the engine prints. update_document changes the document later by its document_id. The PDF carries the document's editable source (encrypted; keep_editable false leaves it out): import_pdf, or Import in the editor, restores it as this document, without AI.

render_pdf input schema
{
  "type": "object",
  "required": [
    "html"
  ],
  "properties": {
    "html": {
      "type": "string",
      "description": "The whole HTML document: <!doctype html>, <html lang>, a <title>, a <style> in <head> with @page. Self-contained; images and fonts by https URL, data: URI or an upload_image link."
    },
    "pdf_a": {
      "enum": [
        "3a",
        "1b"
      ],
      "type": "string",
      "description": "Declare PDF/A: \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
    },
    "pdf_ua": {
      "enum": [
        1,
        2
      ],
      "type": "integer",
      "description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0). Not with pdf_a. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
    },
    "options": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "examples": [
            "en",
            "de-CH"
          ],
          "description": "The document language (BCP 47), used when `<html lang>` is not set."
        },
        "paper": {
          "type": "object",
          "properties": {
            "size": {
              "type": "string",
              "default": "A4",
              "examples": [
                "A4",
                "Letter",
                "100mm 150mm"
              ],
              "description": "A0–A10, B0–B10, C0–C10, JIS-B4, JIS-B5, Letter, Legal, Ledger, Tabloid, or two lengths such as \"210mm 297mm\"."
            },
            "margin": {
              "type": "string",
              "default": "20mm",
              "examples": [
                "20mm",
                "15mm 20mm"
              ],
              "description": "A CSS margin value."
            },
            "orientation": {
              "enum": [
                "portrait",
                "landscape"
              ],
              "type": "string",
              "default": "portrait",
              "description": "`portrait` or `landscape`."
            }
          },
          "description": "The default paper, applied as a user-agent `@page` rule: any property the document's own `@page` sets takes precedence. Without either: A4 portrait, 20 mm margins.",
          "additionalProperties": false
        },
        "pdf_a": {
          "enum": [
            "3a",
            "1b"
          ],
          "type": "string",
          "description": "Declare PDF/A conformance: `3a` is ISO 19005-3, conformance level A (tagged, includes PDF/UA-1); `1b` is ISO 19005-1, conformance level B (PDF 1.4: transparency is flattened into opaque images, text stays selectable). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_x": {
          "type": "object",
          "required": [
            "output_intent"
          ],
          "properties": {
            "profile": {
              "type": "string",
              "description": "Your printer's ICC output profile (device class `prtr`; Gray, RGB or CMYK; up to 8 MB), base64-encoded.",
              "contentEncoding": "base64"
            },
            "standard": {
              "enum": [
                "x-4",
                "x-1a"
              ],
              "type": "string",
              "default": "x-4",
              "description": "`x-4`: ISO 15930-7 (PDF 1.6, transparency and RGB preserved); `x-1a`: ISO 15930-4 (PDF 1.4, all colors converted to the output intent's inks, transparency flattened; requires a CMYK output intent)."
            },
            "output_intent": {
              "type": "string",
              "examples": [
                "FOGRA39",
                "CGATS21-2-CRPC5",
                "CGATS TR 001"
              ],
              "description": "A print condition of the engine's registry (e.g. `FOGRA39`, `CGATS21-2-CRPC5`, `CGATS TR 001`), or the name of your own `profile`."
            }
          },
          "description": "Declare PDF/X conformance for an output intent: colors, page boxes and the output intent of a print-ready file. PDF/X depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "title": {
          "type": "string",
          "maxLength": 500,
          "description": "The PDF title (defaults to the document's `<title>`, then to its first `<h1>`)."
        },
        "wtpdf": {
          "enum": [
            "accessibility",
            "reuse"
          ],
          "type": "string",
          "description": "Declare Well-Tagged PDF 1.0 conformance (PDF Association): a tagged PDF 2.0 that declares its conformance level. `accessibility` declares both levels (it includes the requirements of `reuse`); `reuse` declares the reuse level. The file also conforms to PDF/UA-2. Not with `pdf_a`, `pdf_x` or `pdf_ua: 1`, which use earlier PDF versions. Well-Tagged PDF depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_ua": {
          "enum": [
            1,
            2
          ],
          "type": "integer",
          "description": "Declare PDF/UA conformance: `1` (ISO 14289-1, PDF 1.7) or `2` (ISO 14289-2, PDF 2.0). Every PDF is tagged unless `tagged: false`. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
        },
        "tagged": {
          "type": "boolean",
          "default": true,
          "description": "Produce a tagged PDF (logical structure for screen readers and reflow). `false` produces a smaller untagged file; not compatible with `pdf_ua` or `pdf_a: \"3a\"`."
        },
        "base_css": {
          "type": "string",
          "maxLength": 1048576,
          "description": "Your CSS, applied at the user-agent level: defaults that the document's own CSS can override."
        },
        "base_url": {
          "type": "string",
          "format": "uri",
          "examples": [
            "https://example.com/invoices/"
          ],
          "description": "The base URL (http or https) for the document's relative URLs; acts as `<base href>` unless the document sets its own."
        },
        "metadata": {
          "type": "object",
          "properties": {
            "author": {
              "type": "string",
              "maxLength": 1000
            },
            "subject": {
              "type": "string",
              "maxLength": 1000
            },
            "keywords": {
              "type": "string",
              "maxLength": 1000
            }
          },
          "description": "Overrides the document's `<meta name=\"author|description|keywords\">`.",
          "additionalProperties": false
        },
        "e_invoice": {
          "type": "object",
          "required": [
            "profile",
            "xml"
          ],
          "properties": {
            "xml": {
              "type": "string",
              "description": "The invoice as UN/CEFACT Cross Industry Invoice (CII) XML text, up to 5 MB in UTF-8. It is embedded as UTF-8, so its XML declaration must specify UTF-8 or no encoding."
            },
            "profile": {
              "enum": [
                "en16931",
                "xrechnung"
              ],
              "type": "string",
              "description": "`en16931`: the EN 16931 (Comfort) profile, embedded as `factur-x.xml`; `xrechnung`: the XRECHNUNG reference profile (the German CIUS), embedded as `xrechnung.xml`. The XML's specification identifier (BT-24) must match the profile exactly: `urn:cen.eu:en16931:2017`, or `urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0` (XRechnung 3.0)."
            }
          },
          "description": "Produce a hybrid e-invoice: Factur-X 1.0 / ZUGFeRD 2.5 (FNFE-MPE and FeRD, Factur-X 1.09.2), a PDF/A-3a with the invoice XML embedded. The XML is validated against its profile first (the KoSIT validator for XRechnung 3.0; the EN 16931 XSD and Schematron of Factur-X 1.09.2); an invoice that fails is refused with each violated rule. Its `attachments` use the formats Factur-X allows (§6.4: PDF, TXT, GIF, TIFF, JPG, CSV, XML, JSON, XLS, XLSX, ODS, each with its `mime_type`) and names other than the invoice's (`factur-x.xml`, `xrechnung.xml`, `zugferd-invoice.xml`). Not with `pdf_a: \"1b\"`, `pdf_ua: 2`, `pdf_x`, `wtpdf` or `encryption`. An e-invoice depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "max_pages": {
          "type": "integer",
          "maximum": 5000,
          "minimum": 1,
          "description": "Render at most this many pages; the rest is omitted."
        },
        "watermark": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "examples": [
                "DRAFT",
                "CONFIDENTIAL"
              ],
              "maxLength": 200,
              "description": "The watermark text."
            },
            "tile": {
              "type": "boolean",
              "default": false,
              "description": "Repeat the stamp across the page."
            },
            "above": {
              "type": "boolean",
              "default": false,
              "description": "Draw over the content instead of behind it."
            },
            "angle": {
              "type": "number",
              "default": -45,
              "description": "Rotation in degrees, counterclockwise."
            },
            "color": {
              "type": "string",
              "description": "A CSS color."
            },
            "image": {
              "type": "string",
              "description": "An https or data: URL of an image (instead of `text`)."
            },
            "opacity": {
              "type": "number",
              "default": 0.08,
              "maximum": 1,
              "minimum": 0,
              "description": "From 0 (transparent) to 1 (opaque)."
            },
            "position": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              },
              "description": "Place a single stamp at this position (points from the page's top-left corner) instead of the center.",
              "additionalProperties": false
            },
            "font_size": {
              "type": "number",
              "default": 60,
              "description": "In points."
            },
            "image_width": {
              "type": "number",
              "description": "Image width in points, with `image_height` (defaults to its natural size at 96 dpi)."
            },
            "image_height": {
              "type": "number",
              "description": "Image height in points, with `image_width`."
            },
            "tile_spacing": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "description": "[x, y] spacing of the tiles, in points."
            }
          },
          "description": "A text or image stamped on every page, behind the content unless `above` is set; marked as an artifact in a tagged PDF.",
          "additionalProperties": false
        },
        "encryption": {
          "type": "object",
          "required": [
            "owner_password"
          ],
          "properties": {
            "algorithm": {
              "enum": [
                "aes-256",
                "rc4-128"
              ],
              "type": "string",
              "default": "aes-256",
              "description": "Use `rc4-128` only for readers older than Acrobat 9."
            },
            "permissions": {
              "type": "array",
              "items": {
                "enum": [
                  "print",
                  "print-high",
                  "modify",
                  "copy",
                  "annotate",
                  "fill-forms",
                  "assemble"
                ],
                "type": "string"
              },
              "description": "Allowed actions; anything not listed is denied. Text extraction for accessibility (screen readers) is always allowed (ISO 32000-2, PDF/UA)."
            },
            "user_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password required to open the file. If empty or omitted, the file opens without a password, with the permissions below."
            },
            "owner_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password that lifts the permission restrictions."
            }
          },
          "description": "Encrypt the PDF (AES-256 by default, ISO 32000-2). Not compatible with PDF/A or PDF/X, whose standards forbid encryption.",
          "additionalProperties": false
        },
        "javascript": {
          "type": "boolean",
          "default": false,
          "description": "Run the document's scripts before rendering, against the engine's own DOM, with layout queries answered by the engine. Off by default: without it scripts do not run."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "filename",
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "The file content, base64-encoded.",
                "contentEncoding": "base64"
              },
              "element": {
                "type": "string",
                "description": "The `id` of the element the file belongs to (e.g. a table's data); the whole document if omitted."
              },
              "filename": {
                "type": "string",
                "examples": [
                  "data.csv"
                ],
                "description": "The attachment's file name."
              },
              "mime_type": {
                "type": "string",
                "examples": [
                  "text/csv"
                ],
                "description": "The media type."
              },
              "description": {
                "type": "string",
                "description": "A description shown by PDF readers."
              },
              "relationship": {
                "enum": [
                  "data",
                  "source",
                  "alternative",
                  "supplement",
                  "unspecified"
                ],
                "type": "string",
                "default": "unspecified",
                "description": "The file's relationship to the document (PDF/A-3 `AFRelationship`)."
              }
            },
            "additionalProperties": false
          },
          "maxItems": 20,
          "description": "Files to embed in the PDF (10 MB in total). With `pdf_a: \"3a\"` they are PDF/A-3 associated files. Not allowed with `pdf_a: \"1b\"` or `pdf_x`, whose standards forbid embedded files."
        },
        "compression": {
          "enum": [
            "fast",
            "default",
            "smallest"
          ],
          "type": "string",
          "default": "default",
          "description": "Lossless compression effort for streams. Images are never resampled."
        },
        "print_scale": {
          "type": "number",
          "maximum": 0.99,
          "minimum": 0.06,
          "description": "Scale the document down by this factor."
        },
        "allow_remote": {
          "type": "boolean",
          "default": true,
          "description": "Fetch remote images, stylesheets and fonts over http(s) (public addresses only). `false` renders with embedded resources only."
        },
        "color_scheme": {
          "enum": [
            "light",
            "dark"
          ],
          "type": "string",
          "default": "light",
          "description": "The value of the `prefers-color-scheme` media feature."
        },
        "input_format": {
          "enum": [
            "html",
            "xhtml"
          ],
          "type": "string",
          "default": "html",
          "description": "`xhtml`: parse the document as XML."
        },
        "header_footer": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "examples": [
                "#666666"
              ],
              "description": "A CSS color."
            },
            "footer": {
              "type": "string",
              "maxLength": 500,
              "description": "Text in the bottom margin of every page; `{pageNum}` and `{totalPages}` are replaced."
            },
            "header": {
              "type": "string",
              "examples": [
                "Quarterly report, page {pageNum} of {totalPages}"
              ],
              "maxLength": 500,
              "description": "`{pageNum}` and `{totalPages}` are replaced on each page."
            },
            "font_size": {
              "type": "string",
              "default": "7.5pt",
              "description": "A CSS length."
            },
            "footer_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the footer."
            },
            "header_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the header."
            }
          },
          "description": "A line of text in the top and bottom margins of every page. CSS `@page` margin boxes (`@top-center { content: … counter(page) }`) do the same in the document itself, with full styling.",
          "additionalProperties": false
        },
        "shrink_to_fit": {
          "type": "boolean",
          "default": false,
          "description": "Scale a document wider than the page down to fit, as browsers do. Off by default, so lengths stay physical."
        },
        "object_streams": {
          "type": "boolean",
          "default": true,
          "description": "Pack objects into object streams (smaller files). `false` writes a classic cross-reference table for readers older than PDF 1.5."
        },
        "default_font_size": {
          "type": "string",
          "default": "12pt",
          "description": "The size of CSS `medium`: the document's base font size."
        }
      },
      "description": "The engine's print options — the same as the ReflowPDF API's `options` (https://api.reflowpdf.com/docs/), each checked the same way: a wrong or conflicting one is refused with what to change. Shrinking like a browser's print: shrink_to_fit (fit to the page width) or print_scale (a factor, e.g. 0.8 for 80%). pdf_ua, pdf_a and shrink_to_fit may also be given outside options. Kept with the document for its later prints.",
      "additionalProperties": false
    },
    "preview": {
      "type": "boolean",
      "description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
    },
    "filename": {
      "type": "string",
      "description": "The PDF file name, e.g. \"invoice-1042.pdf\". Default: the document's <title>."
    },
    "keep_editable": {
      "type": "boolean",
      "description": "Embed the document's source in the PDF so it reopens in the ReflowPDF editor as this document, without AI. Default: true."
    },
    "preview_pages": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
    },
    "shrink_to_fit": {
      "type": "boolean",
      "description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
    }
  },
  "additionalProperties": false
}
render_pdf output schema
{
  "type": "object",
  "required": [
    "url",
    "expiresAt",
    "filename",
    "pages",
    "bytes",
    "mark",
    "notes",
    "title",
    "pdfUrl",
    "sizeKb",
    "paper",
    "guest",
    "previews"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The link, valid 24 hours."
    },
    "mark": {
      "enum": [
        "none",
        "guest",
        "free-allowance-used"
      ],
      "type": "string",
      "description": "Whether the PDF carries the ReflowPDF mark, and why."
    },
    "bytes": {
      "type": "integer"
    },
    "guest": {
      "type": "boolean",
      "description": "Printed without an account: the pages carry the ReflowPDF mark."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
    },
    "pages": {
      "type": "integer"
    },
    "paper": {
      "type": "string",
      "description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
    },
    "title": {
      "type": "string",
      "description": "The document's title."
    },
    "pdfUrl": {
      "type": "string",
      "description": "The PDF (the same link as url)."
    },
    "sizeKb": {
      "type": "integer",
      "description": "The PDF's size in KB."
    },
    "timing": {
      "type": "object",
      "properties": {
        "writeMs": {
          "type": "number"
        },
        "layoutMs": {
          "type": "number"
        }
      },
      "description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
    },
    "editUrl": {
      "type": "string",
      "description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "level",
          "title"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "level": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
    },
    "preview": {
      "type": "string",
      "description": "Which pages came with this answer as pictures (PNG), or why none did."
    },
    "filename": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page",
          "url",
          "width",
          "height"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "page": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      },
      "description": "Pages as pictures (PNG), kept with the PDF for its day."
    },
    "renderMs": {
      "type": "integer",
      "description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
    },
    "revision": {
      "type": "integer",
      "description": "Its revision: name it to update_document as base_revision."
    },
    "expiresAt": {
      "type": "string",
      "description": "When the link stops working (ISO 8601)."
    },
    "standards": {
      "type": "object",
      "properties": {
        "pdfA": {
          "type": [
            "string",
            "null"
          ]
        },
        "pdfUa": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
    },
    "documentId": {
      "type": "string",
      "description": "The document, for get_document and update_document."
    },
    "missingFonts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Font families the document named that no face answered: their text took the next family of its list."
    },
    "missingVariables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Template values the data did not have (printed empty)."
    },
    "skippedResources": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Images, fonts or style sheets the server could not fetch."
    }
  }
}
render_pdf annotations
{
  "title": "Print HTML to PDF",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
render_template — Fill a template and print it
Advertised by the server during the last successful anonymous check.
Open-world

Fills a template with JSON data and prints it to PDF (a download link, valid 24 hours, and the edit link in the editor, where its template and data stay editable — until the person edits it on the page, which makes it a plain HTML document: then change its html). Either a gallery template (template_id from list_templates; without data it prints its sample) or your own template source. The data takes the shape of the template's sample (get_template); read_guide topic "templates" describes the language. The PDF carries the document's editable source (encrypted; keep_editable false leaves it out): import_pdf, or Import in the editor, restores it as this document, without AI.

render_template input schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "The values the template reads, in the shape of its sample data.",
      "additionalProperties": true
    },
    "pdf_a": {
      "enum": [
        "3a",
        "1b"
      ],
      "type": "string",
      "description": "Declare PDF/A: \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
    },
    "pdf_ua": {
      "enum": [
        1,
        2
      ],
      "type": "integer",
      "description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0). Not with pdf_a. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
    },
    "options": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "examples": [
            "en",
            "de-CH"
          ],
          "description": "The document language (BCP 47), used when `<html lang>` is not set."
        },
        "paper": {
          "type": "object",
          "properties": {
            "size": {
              "type": "string",
              "default": "A4",
              "examples": [
                "A4",
                "Letter",
                "100mm 150mm"
              ],
              "description": "A0–A10, B0–B10, C0–C10, JIS-B4, JIS-B5, Letter, Legal, Ledger, Tabloid, or two lengths such as \"210mm 297mm\"."
            },
            "margin": {
              "type": "string",
              "default": "20mm",
              "examples": [
                "20mm",
                "15mm 20mm"
              ],
              "description": "A CSS margin value."
            },
            "orientation": {
              "enum": [
                "portrait",
                "landscape"
              ],
              "type": "string",
              "default": "portrait",
              "description": "`portrait` or `landscape`."
            }
          },
          "description": "The default paper, applied as a user-agent `@page` rule: any property the document's own `@page` sets takes precedence. Without either: A4 portrait, 20 mm margins.",
          "additionalProperties": false
        },
        "pdf_a": {
          "enum": [
            "3a",
            "1b"
          ],
          "type": "string",
          "description": "Declare PDF/A conformance: `3a` is ISO 19005-3, conformance level A (tagged, includes PDF/UA-1); `1b` is ISO 19005-1, conformance level B (PDF 1.4: transparency is flattened into opaque images, text stays selectable). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_x": {
          "type": "object",
          "required": [
            "output_intent"
          ],
          "properties": {
            "profile": {
              "type": "string",
              "description": "Your printer's ICC output profile (device class `prtr`; Gray, RGB or CMYK; up to 8 MB), base64-encoded.",
              "contentEncoding": "base64"
            },
            "standard": {
              "enum": [
                "x-4",
                "x-1a"
              ],
              "type": "string",
              "default": "x-4",
              "description": "`x-4`: ISO 15930-7 (PDF 1.6, transparency and RGB preserved); `x-1a`: ISO 15930-4 (PDF 1.4, all colors converted to the output intent's inks, transparency flattened; requires a CMYK output intent)."
            },
            "output_intent": {
              "type": "string",
              "examples": [
                "FOGRA39",
                "CGATS21-2-CRPC5",
                "CGATS TR 001"
              ],
              "description": "A print condition of the engine's registry (e.g. `FOGRA39`, `CGATS21-2-CRPC5`, `CGATS TR 001`), or the name of your own `profile`."
            }
          },
          "description": "Declare PDF/X conformance for an output intent: colors, page boxes and the output intent of a print-ready file. PDF/X depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "title": {
          "type": "string",
          "maxLength": 500,
          "description": "The PDF title (defaults to the document's `<title>`, then to its first `<h1>`)."
        },
        "wtpdf": {
          "enum": [
            "accessibility",
            "reuse"
          ],
          "type": "string",
          "description": "Declare Well-Tagged PDF 1.0 conformance (PDF Association): a tagged PDF 2.0 that declares its conformance level. `accessibility` declares both levels (it includes the requirements of `reuse`); `reuse` declares the reuse level. The file also conforms to PDF/UA-2. Not with `pdf_a`, `pdf_x` or `pdf_ua: 1`, which use earlier PDF versions. Well-Tagged PDF depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_ua": {
          "enum": [
            1,
            2
          ],
          "type": "integer",
          "description": "Declare PDF/UA conformance: `1` (ISO 14289-1, PDF 1.7) or `2` (ISO 14289-2, PDF 2.0). Every PDF is tagged unless `tagged: false`. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
        },
        "tagged": {
          "type": "boolean",
          "default": true,
          "description": "Produce a tagged PDF (logical structure for screen readers and reflow). `false` produces a smaller untagged file; not compatible with `pdf_ua` or `pdf_a: \"3a\"`."
        },
        "base_css": {
          "type": "string",
          "maxLength": 1048576,
          "description": "Your CSS, applied at the user-agent level: defaults that the document's own CSS can override."
        },
        "base_url": {
          "type": "string",
          "format": "uri",
          "examples": [
            "https://example.com/invoices/"
          ],
          "description": "The base URL (http or https) for the document's relative URLs; acts as `<base href>` unless the document sets its own."
        },
        "metadata": {
          "type": "object",
          "properties": {
            "author": {
              "type": "string",
              "maxLength": 1000
            },
            "subject": {
              "type": "string",
              "maxLength": 1000
            },
            "keywords": {
              "type": "string",
              "maxLength": 1000
            }
          },
          "description": "Overrides the document's `<meta name=\"author|description|keywords\">`.",
          "additionalProperties": false
        },
        "e_invoice": {
          "type": "object",
          "required": [
            "profile",
            "xml"
          ],
          "properties": {
            "xml": {
              "type": "string",
              "description": "The invoice as UN/CEFACT Cross Industry Invoice (CII) XML text, up to 5 MB in UTF-8. It is embedded as UTF-8, so its XML declaration must specify UTF-8 or no encoding."
            },
            "profile": {
              "enum": [
                "en16931",
                "xrechnung"
              ],
              "type": "string",
              "description": "`en16931`: the EN 16931 (Comfort) profile, embedded as `factur-x.xml`; `xrechnung`: the XRECHNUNG reference profile (the German CIUS), embedded as `xrechnung.xml`. The XML's specification identifier (BT-24) must match the profile exactly: `urn:cen.eu:en16931:2017`, or `urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0` (XRechnung 3.0)."
            }
          },
          "description": "Produce a hybrid e-invoice: Factur-X 1.0 / ZUGFeRD 2.5 (FNFE-MPE and FeRD, Factur-X 1.09.2), a PDF/A-3a with the invoice XML embedded. The XML is validated against its profile first (the KoSIT validator for XRechnung 3.0; the EN 16931 XSD and Schematron of Factur-X 1.09.2); an invoice that fails is refused with each violated rule. Its `attachments` use the formats Factur-X allows (§6.4: PDF, TXT, GIF, TIFF, JPG, CSV, XML, JSON, XLS, XLSX, ODS, each with its `mime_type`) and names other than the invoice's (`factur-x.xml`, `xrechnung.xml`, `zugferd-invoice.xml`). Not with `pdf_a: \"1b\"`, `pdf_ua: 2`, `pdf_x`, `wtpdf` or `encryption`. An e-invoice depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "max_pages": {
          "type": "integer",
          "maximum": 5000,
          "minimum": 1,
          "description": "Render at most this many pages; the rest is omitted."
        },
        "watermark": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "examples": [
                "DRAFT",
                "CONFIDENTIAL"
              ],
              "maxLength": 200,
              "description": "The watermark text."
            },
            "tile": {
              "type": "boolean",
              "default": false,
              "description": "Repeat the stamp across the page."
            },
            "above": {
              "type": "boolean",
              "default": false,
              "description": "Draw over the content instead of behind it."
            },
            "angle": {
              "type": "number",
              "default": -45,
              "description": "Rotation in degrees, counterclockwise."
            },
            "color": {
              "type": "string",
              "description": "A CSS color."
            },
            "image": {
              "type": "string",
              "description": "An https or data: URL of an image (instead of `text`)."
            },
            "opacity": {
              "type": "number",
              "default": 0.08,
              "maximum": 1,
              "minimum": 0,
              "description": "From 0 (transparent) to 1 (opaque)."
            },
            "position": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              },
              "description": "Place a single stamp at this position (points from the page's top-left corner) instead of the center.",
              "additionalProperties": false
            },
            "font_size": {
              "type": "number",
              "default": 60,
              "description": "In points."
            },
            "image_width": {
              "type": "number",
              "description": "Image width in points, with `image_height` (defaults to its natural size at 96 dpi)."
            },
            "image_height": {
              "type": "number",
              "description": "Image height in points, with `image_width`."
            },
            "tile_spacing": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "description": "[x, y] spacing of the tiles, in points."
            }
          },
          "description": "A text or image stamped on every page, behind the content unless `above` is set; marked as an artifact in a tagged PDF.",
          "additionalProperties": false
        },
        "encryption": {
          "type": "object",
          "required": [
            "owner_password"
          ],
          "properties": {
            "algorithm": {
              "enum": [
                "aes-256",
                "rc4-128"
              ],
              "type": "string",
              "default": "aes-256",
              "description": "Use `rc4-128` only for readers older than Acrobat 9."
            },
            "permissions": {
              "type": "array",
              "items": {
                "enum": [
                  "print",
                  "print-high",
                  "modify",
                  "copy",
                  "annotate",
                  "fill-forms",
                  "assemble"
                ],
                "type": "string"
              },
              "description": "Allowed actions; anything not listed is denied. Text extraction for accessibility (screen readers) is always allowed (ISO 32000-2, PDF/UA)."
            },
            "user_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password required to open the file. If empty or omitted, the file opens without a password, with the permissions below."
            },
            "owner_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password that lifts the permission restrictions."
            }
          },
          "description": "Encrypt the PDF (AES-256 by default, ISO 32000-2). Not compatible with PDF/A or PDF/X, whose standards forbid encryption.",
          "additionalProperties": false
        },
        "javascript": {
          "type": "boolean",
          "default": false,
          "description": "Run the document's scripts before rendering, against the engine's own DOM, with layout queries answered by the engine. Off by default: without it scripts do not run."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "filename",
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "The file content, base64-encoded.",
                "contentEncoding": "base64"
              },
              "element": {
                "type": "string",
                "description": "The `id` of the element the file belongs to (e.g. a table's data); the whole document if omitted."
              },
              "filename": {
                "type": "string",
                "examples": [
                  "data.csv"
                ],
                "description": "The attachment's file name."
              },
              "mime_type": {
                "type": "string",
                "examples": [
                  "text/csv"
                ],
                "description": "The media type."
              },
              "description": {
                "type": "string",
                "description": "A description shown by PDF readers."
              },
              "relationship": {
                "enum": [
                  "data",
                  "source",
                  "alternative",
                  "supplement",
                  "unspecified"
                ],
                "type": "string",
                "default": "unspecified",
                "description": "The file's relationship to the document (PDF/A-3 `AFRelationship`)."
              }
            },
            "additionalProperties": false
          },
          "maxItems": 20,
          "description": "Files to embed in the PDF (10 MB in total). With `pdf_a: \"3a\"` they are PDF/A-3 associated files. Not allowed with `pdf_a: \"1b\"` or `pdf_x`, whose standards forbid embedded files."
        },
        "compression": {
          "enum": [
            "fast",
            "default",
            "smallest"
          ],
          "type": "string",
          "default": "default",
          "description": "Lossless compression effort for streams. Images are never resampled."
        },
        "print_scale": {
          "type": "number",
          "maximum": 0.99,
          "minimum": 0.06,
          "description": "Scale the document down by this factor."
        },
        "allow_remote": {
          "type": "boolean",
          "default": true,
          "description": "Fetch remote images, stylesheets and fonts over http(s) (public addresses only). `false` renders with embedded resources only."
        },
        "color_scheme": {
          "enum": [
            "light",
            "dark"
          ],
          "type": "string",
          "default": "light",
          "description": "The value of the `prefers-color-scheme` media feature."
        },
        "input_format": {
          "enum": [
            "html",
            "xhtml"
          ],
          "type": "string",
          "default": "html",
          "description": "`xhtml`: parse the document as XML."
        },
        "header_footer": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "examples": [
                "#666666"
              ],
              "description": "A CSS color."
            },
            "footer": {
              "type": "string",
              "maxLength": 500,
              "description": "Text in the bottom margin of every page; `{pageNum}` and `{totalPages}` are replaced."
            },
            "header": {
              "type": "string",
              "examples": [
                "Quarterly report, page {pageNum} of {totalPages}"
              ],
              "maxLength": 500,
              "description": "`{pageNum}` and `{totalPages}` are replaced on each page."
            },
            "font_size": {
              "type": "string",
              "default": "7.5pt",
              "description": "A CSS length."
            },
            "footer_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the footer."
            },
            "header_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the header."
            }
          },
          "description": "A line of text in the top and bottom margins of every page. CSS `@page` margin boxes (`@top-center { content: … counter(page) }`) do the same in the document itself, with full styling.",
          "additionalProperties": false
        },
        "shrink_to_fit": {
          "type": "boolean",
          "default": false,
          "description": "Scale a document wider than the page down to fit, as browsers do. Off by default, so lengths stay physical."
        },
        "object_streams": {
          "type": "boolean",
          "default": true,
          "description": "Pack objects into object streams (smaller files). `false` writes a classic cross-reference table for readers older than PDF 1.5."
        },
        "default_font_size": {
          "type": "string",
          "default": "12pt",
          "description": "The size of CSS `medium`: the document's base font size."
        }
      },
      "description": "The engine's print options — the same as the ReflowPDF API's `options` (https://api.reflowpdf.com/docs/), each checked the same way: a wrong or conflicting one is refused with what to change. Shrinking like a browser's print: shrink_to_fit (fit to the page width) or print_scale (a factor, e.g. 0.8 for 80%). pdf_ua, pdf_a and shrink_to_fit may also be given outside options. Kept with the document for its later prints.",
      "additionalProperties": false
    },
    "preview": {
      "type": "boolean",
      "description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
    },
    "filename": {
      "type": "string",
      "description": "The PDF file name. Default: the template's name or the document's <title>."
    },
    "template": {
      "type": "string",
      "description": "Your own template source (HTML with {{ value }}, {% for %}, {% if %}), instead of template_id."
    },
    "template_id": {
      "type": "string",
      "description": "A gallery template's id, from list_templates."
    },
    "keep_editable": {
      "type": "boolean",
      "description": "Embed the document's source in the PDF so it reopens in the ReflowPDF editor as this document, without AI. Default: true."
    },
    "preview_pages": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
    },
    "shrink_to_fit": {
      "type": "boolean",
      "description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
    }
  },
  "additionalProperties": false
}
render_template output schema
{
  "type": "object",
  "required": [
    "url",
    "expiresAt",
    "filename",
    "pages",
    "bytes",
    "mark",
    "notes",
    "title",
    "pdfUrl",
    "sizeKb",
    "paper",
    "guest",
    "previews"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The link, valid 24 hours."
    },
    "mark": {
      "enum": [
        "none",
        "guest",
        "free-allowance-used"
      ],
      "type": "string",
      "description": "Whether the PDF carries the ReflowPDF mark, and why."
    },
    "bytes": {
      "type": "integer"
    },
    "guest": {
      "type": "boolean",
      "description": "Printed without an account: the pages carry the ReflowPDF mark."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
    },
    "pages": {
      "type": "integer"
    },
    "paper": {
      "type": "string",
      "description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
    },
    "title": {
      "type": "string",
      "description": "The document's title."
    },
    "pdfUrl": {
      "type": "string",
      "description": "The PDF (the same link as url)."
    },
    "sizeKb": {
      "type": "integer",
      "description": "The PDF's size in KB."
    },
    "timing": {
      "type": "object",
      "properties": {
        "writeMs": {
          "type": "number"
        },
        "layoutMs": {
          "type": "number"
        }
      },
      "description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
    },
    "editUrl": {
      "type": "string",
      "description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "level",
          "title"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "level": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
    },
    "preview": {
      "type": "string",
      "description": "Which pages came with this answer as pictures (PNG), or why none did."
    },
    "filename": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page",
          "url",
          "width",
          "height"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "page": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      },
      "description": "Pages as pictures (PNG), kept with the PDF for its day."
    },
    "renderMs": {
      "type": "integer",
      "description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
    },
    "revision": {
      "type": "integer",
      "description": "Its revision: name it to update_document as base_revision."
    },
    "expiresAt": {
      "type": "string",
      "description": "When the link stops working (ISO 8601)."
    },
    "standards": {
      "type": "object",
      "properties": {
        "pdfA": {
          "type": [
            "string",
            "null"
          ]
        },
        "pdfUa": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
    },
    "documentId": {
      "type": "string",
      "description": "The document, for get_document and update_document."
    },
    "missingFonts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Font families the document named that no face answered: their text took the next family of its list."
    },
    "missingVariables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Template values the data did not have (printed empty)."
    },
    "skippedResources": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Images, fonts or style sheets the server could not fetch."
    }
  }
}
render_template annotations
{
  "title": "Fill a template and print it",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
check_document — Check a document while you work on it
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Prints a document only to check it — the person sees nothing: no PDF link, no card, nothing counted to their plan's pages. Answers with its pages as pictures, which heading starts on which page (outline), what runs past the paper, fonts not found, the tag tree a screen reader gets, the standards the file declares and, where the account's plan includes it, veraPDF's report on the standard it declares (PDF/UA-1, PDF/UA-2 or PDF/A-3a): each rule that fails, with its pages. For trying a layout, finding where a part lands and fixing what the validator finds; the person gets the document from render_pdf, render_template or update_document.

check_document input schema
{
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "The whole HTML document to check, as render_pdf takes it."
    },
    "tags": {
      "type": "boolean",
      "description": "The tag tree in the answer. Default: true."
    },
    "pdf_a": {
      "enum": [
        "3a",
        "1b"
      ],
      "type": "string",
      "description": "Declare PDF/A: \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
    },
    "pdf_ua": {
      "enum": [
        1,
        2
      ],
      "type": "integer",
      "description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0). Not with pdf_a. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
    },
    "options": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "examples": [
            "en",
            "de-CH"
          ],
          "description": "The document language (BCP 47), used when `<html lang>` is not set."
        },
        "paper": {
          "type": "object",
          "properties": {
            "size": {
              "type": "string",
              "default": "A4",
              "examples": [
                "A4",
                "Letter",
                "100mm 150mm"
              ],
              "description": "A0–A10, B0–B10, C0–C10, JIS-B4, JIS-B5, Letter, Legal, Ledger, Tabloid, or two lengths such as \"210mm 297mm\"."
            },
            "margin": {
              "type": "string",
              "default": "20mm",
              "examples": [
                "20mm",
                "15mm 20mm"
              ],
              "description": "A CSS margin value."
            },
            "orientation": {
              "enum": [
                "portrait",
                "landscape"
              ],
              "type": "string",
              "default": "portrait",
              "description": "`portrait` or `landscape`."
            }
          },
          "description": "The default paper, applied as a user-agent `@page` rule: any property the document's own `@page` sets takes precedence. Without either: A4 portrait, 20 mm margins.",
          "additionalProperties": false
        },
        "pdf_a": {
          "enum": [
            "3a",
            "1b"
          ],
          "type": "string",
          "description": "Declare PDF/A conformance: `3a` is ISO 19005-3, conformance level A (tagged, includes PDF/UA-1); `1b` is ISO 19005-1, conformance level B (PDF 1.4: transparency is flattened into opaque images, text stays selectable). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_x": {
          "type": "object",
          "required": [
            "output_intent"
          ],
          "properties": {
            "profile": {
              "type": "string",
              "description": "Your printer's ICC output profile (device class `prtr`; Gray, RGB or CMYK; up to 8 MB), base64-encoded.",
              "contentEncoding": "base64"
            },
            "standard": {
              "enum": [
                "x-4",
                "x-1a"
              ],
              "type": "string",
              "default": "x-4",
              "description": "`x-4`: ISO 15930-7 (PDF 1.6, transparency and RGB preserved); `x-1a`: ISO 15930-4 (PDF 1.4, all colors converted to the output intent's inks, transparency flattened; requires a CMYK output intent)."
            },
            "output_intent": {
              "type": "string",
              "examples": [
                "FOGRA39",
                "CGATS21-2-CRPC5",
                "CGATS TR 001"
              ],
              "description": "A print condition of the engine's registry (e.g. `FOGRA39`, `CGATS21-2-CRPC5`, `CGATS TR 001`), or the name of your own `profile`."
            }
          },
          "description": "Declare PDF/X conformance for an output intent: colors, page boxes and the output intent of a print-ready file. PDF/X depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "title": {
          "type": "string",
          "maxLength": 500,
          "description": "The PDF title (defaults to the document's `<title>`, then to its first `<h1>`)."
        },
        "wtpdf": {
          "enum": [
            "accessibility",
            "reuse"
          ],
          "type": "string",
          "description": "Declare Well-Tagged PDF 1.0 conformance (PDF Association): a tagged PDF 2.0 that declares its conformance level. `accessibility` declares both levels (it includes the requirements of `reuse`); `reuse` declares the reuse level. The file also conforms to PDF/UA-2. Not with `pdf_a`, `pdf_x` or `pdf_ua: 1`, which use earlier PDF versions. Well-Tagged PDF depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_ua": {
          "enum": [
            1,
            2
          ],
          "type": "integer",
          "description": "Declare PDF/UA conformance: `1` (ISO 14289-1, PDF 1.7) or `2` (ISO 14289-2, PDF 2.0). Every PDF is tagged unless `tagged: false`. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
        },
        "tagged": {
          "type": "boolean",
          "default": true,
          "description": "Produce a tagged PDF (logical structure for screen readers and reflow). `false` produces a smaller untagged file; not compatible with `pdf_ua` or `pdf_a: \"3a\"`."
        },
        "base_css": {
          "type": "string",
          "maxLength": 1048576,
          "description": "Your CSS, applied at the user-agent level: defaults that the document's own CSS can override."
        },
        "base_url": {
          "type": "string",
          "format": "uri",
          "examples": [
            "https://example.com/invoices/"
          ],
          "description": "The base URL (http or https) for the document's relative URLs; acts as `<base href>` unless the document sets its own."
        },
        "metadata": {
          "type": "object",
          "properties": {
            "author": {
              "type": "string",
              "maxLength": 1000
            },
            "subject": {
              "type": "string",
              "maxLength": 1000
            },
            "keywords": {
              "type": "string",
              "maxLength": 1000
            }
          },
          "description": "Overrides the document's `<meta name=\"author|description|keywords\">`.",
          "additionalProperties": false
        },
        "e_invoice": {
          "type": "object",
          "required": [
            "profile",
            "xml"
          ],
          "properties": {
            "xml": {
              "type": "string",
              "description": "The invoice as UN/CEFACT Cross Industry Invoice (CII) XML text, up to 5 MB in UTF-8. It is embedded as UTF-8, so its XML declaration must specify UTF-8 or no encoding."
            },
            "profile": {
              "enum": [
                "en16931",
                "xrechnung"
              ],
              "type": "string",
              "description": "`en16931`: the EN 16931 (Comfort) profile, embedded as `factur-x.xml`; `xrechnung`: the XRECHNUNG reference profile (the German CIUS), embedded as `xrechnung.xml`. The XML's specification identifier (BT-24) must match the profile exactly: `urn:cen.eu:en16931:2017`, or `urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0` (XRechnung 3.0)."
            }
          },
          "description": "Produce a hybrid e-invoice: Factur-X 1.0 / ZUGFeRD 2.5 (FNFE-MPE and FeRD, Factur-X 1.09.2), a PDF/A-3a with the invoice XML embedded. The XML is validated against its profile first (the KoSIT validator for XRechnung 3.0; the EN 16931 XSD and Schematron of Factur-X 1.09.2); an invoice that fails is refused with each violated rule. Its `attachments` use the formats Factur-X allows (§6.4: PDF, TXT, GIF, TIFF, JPG, CSV, XML, JSON, XLS, XLSX, ODS, each with its `mime_type`) and names other than the invoice's (`factur-x.xml`, `xrechnung.xml`, `zugferd-invoice.xml`). Not with `pdf_a: \"1b\"`, `pdf_ua: 2`, `pdf_x`, `wtpdf` or `encryption`. An e-invoice depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "max_pages": {
          "type": "integer",
          "maximum": 5000,
          "minimum": 1,
          "description": "Render at most this many pages; the rest is omitted."
        },
        "watermark": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "examples": [
                "DRAFT",
                "CONFIDENTIAL"
              ],
              "maxLength": 200,
              "description": "The watermark text."
            },
            "tile": {
              "type": "boolean",
              "default": false,
              "description": "Repeat the stamp across the page."
            },
            "above": {
              "type": "boolean",
              "default": false,
              "description": "Draw over the content instead of behind it."
            },
            "angle": {
              "type": "number",
              "default": -45,
              "description": "Rotation in degrees, counterclockwise."
            },
            "color": {
              "type": "string",
              "description": "A CSS color."
            },
            "image": {
              "type": "string",
              "description": "An https or data: URL of an image (instead of `text`)."
            },
            "opacity": {
              "type": "number",
              "default": 0.08,
              "maximum": 1,
              "minimum": 0,
              "description": "From 0 (transparent) to 1 (opaque)."
            },
            "position": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              },
              "description": "Place a single stamp at this position (points from the page's top-left corner) instead of the center.",
              "additionalProperties": false
            },
            "font_size": {
              "type": "number",
              "default": 60,
              "description": "In points."
            },
            "image_width": {
              "type": "number",
              "description": "Image width in points, with `image_height` (defaults to its natural size at 96 dpi)."
            },
            "image_height": {
              "type": "number",
              "description": "Image height in points, with `image_width`."
            },
            "tile_spacing": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "description": "[x, y] spacing of the tiles, in points."
            }
          },
          "description": "A text or image stamped on every page, behind the content unless `above` is set; marked as an artifact in a tagged PDF.",
          "additionalProperties": false
        },
        "encryption": {
          "type": "object",
          "required": [
            "owner_password"
          ],
          "properties": {
            "algorithm": {
              "enum": [
                "aes-256",
                "rc4-128"
              ],
              "type": "string",
              "default": "aes-256",
              "description": "Use `rc4-128` only for readers older than Acrobat 9."
            },
            "permissions": {
              "type": "array",
              "items": {
                "enum": [
                  "print",
                  "print-high",
                  "modify",
                  "copy",
                  "annotate",
                  "fill-forms",
                  "assemble"
                ],
                "type": "string"
              },
              "description": "Allowed actions; anything not listed is denied. Text extraction for accessibility (screen readers) is always allowed (ISO 32000-2, PDF/UA)."
            },
            "user_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password required to open the file. If empty or omitted, the file opens without a password, with the permissions below."
            },
            "owner_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password that lifts the permission restrictions."
            }
          },
          "description": "Encrypt the PDF (AES-256 by default, ISO 32000-2). Not compatible with PDF/A or PDF/X, whose standards forbid encryption.",
          "additionalProperties": false
        },
        "javascript": {
          "type": "boolean",
          "default": false,
          "description": "Run the document's scripts before rendering, against the engine's own DOM, with layout queries answered by the engine. Off by default: without it scripts do not run."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "filename",
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "The file content, base64-encoded.",
                "contentEncoding": "base64"
              },
              "element": {
                "type": "string",
                "description": "The `id` of the element the file belongs to (e.g. a table's data); the whole document if omitted."
              },
              "filename": {
                "type": "string",
                "examples": [
                  "data.csv"
                ],
                "description": "The attachment's file name."
              },
              "mime_type": {
                "type": "string",
                "examples": [
                  "text/csv"
                ],
                "description": "The media type."
              },
              "description": {
                "type": "string",
                "description": "A description shown by PDF readers."
              },
              "relationship": {
                "enum": [
                  "data",
                  "source",
                  "alternative",
                  "supplement",
                  "unspecified"
                ],
                "type": "string",
                "default": "unspecified",
                "description": "The file's relationship to the document (PDF/A-3 `AFRelationship`)."
              }
            },
            "additionalProperties": false
          },
          "maxItems": 20,
          "description": "Files to embed in the PDF (10 MB in total). With `pdf_a: \"3a\"` they are PDF/A-3 associated files. Not allowed with `pdf_a: \"1b\"` or `pdf_x`, whose standards forbid embedded files."
        },
        "compression": {
          "enum": [
            "fast",
            "default",
            "smallest"
          ],
          "type": "string",
          "default": "default",
          "description": "Lossless compression effort for streams. Images are never resampled."
        },
        "print_scale": {
          "type": "number",
          "maximum": 0.99,
          "minimum": 0.06,
          "description": "Scale the document down by this factor."
        },
        "allow_remote": {
          "type": "boolean",
          "default": true,
          "description": "Fetch remote images, stylesheets and fonts over http(s) (public addresses only). `false` renders with embedded resources only."
        },
        "color_scheme": {
          "enum": [
            "light",
            "dark"
          ],
          "type": "string",
          "default": "light",
          "description": "The value of the `prefers-color-scheme` media feature."
        },
        "input_format": {
          "enum": [
            "html",
            "xhtml"
          ],
          "type": "string",
          "default": "html",
          "description": "`xhtml`: parse the document as XML."
        },
        "header_footer": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "examples": [
                "#666666"
              ],
              "description": "A CSS color."
            },
            "footer": {
              "type": "string",
              "maxLength": 500,
              "description": "Text in the bottom margin of every page; `{pageNum}` and `{totalPages}` are replaced."
            },
            "header": {
              "type": "string",
              "examples": [
                "Quarterly report, page {pageNum} of {totalPages}"
              ],
              "maxLength": 500,
              "description": "`{pageNum}` and `{totalPages}` are replaced on each page."
            },
            "font_size": {
              "type": "string",
              "default": "7.5pt",
              "description": "A CSS length."
            },
            "footer_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the footer."
            },
            "header_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the header."
            }
          },
          "description": "A line of text in the top and bottom margins of every page. CSS `@page` margin boxes (`@top-center { content: … counter(page) }`) do the same in the document itself, with full styling.",
          "additionalProperties": false
        },
        "shrink_to_fit": {
          "type": "boolean",
          "default": false,
          "description": "Scale a document wider than the page down to fit, as browsers do. Off by default, so lengths stay physical."
        },
        "object_streams": {
          "type": "boolean",
          "default": true,
          "description": "Pack objects into object streams (smaller files). `false` writes a classic cross-reference table for readers older than PDF 1.5."
        },
        "default_font_size": {
          "type": "string",
          "default": "12pt",
          "description": "The size of CSS `medium`: the document's base font size."
        }
      },
      "description": "The engine's print options — the same as the ReflowPDF API's `options` (https://api.reflowpdf.com/docs/), each checked the same way: a wrong or conflicting one is refused with what to change. Shrinking like a browser's print: shrink_to_fit (fit to the page width) or print_scale (a factor, e.g. 0.8 for 80%). pdf_ua, pdf_a and shrink_to_fit may also be given outside options. Given with document_id: they replace the document's for this check.",
      "additionalProperties": false
    },
    "document_id": {
      "type": "string",
      "description": "Or a document by its link (or its edit link), as it is now: its source, data and standards."
    },
    "preview_pages": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last. Pick them by the outline of an earlier answer."
    },
    "shrink_to_fit": {
      "type": "boolean",
      "description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen."
    }
  },
  "additionalProperties": false
}
check_document output schema
{
  "type": "object",
  "required": [
    "pages",
    "preview",
    "notes"
  ],
  "properties": {
    "tags": {
      "type": "object",
      "properties": {
        "cut": {
          "type": "boolean"
        },
        "text": {
          "type": "string"
        },
        "lines": {
          "type": "integer"
        }
      },
      "description": "The tag tree a screen reader gets: text (each element and its text, indented), lines, cut (when longer than shown)."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
    },
    "pages": {
      "type": "integer"
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "level",
          "title"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "level": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
    },
    "preview": {
      "type": "string",
      "description": "Which pages came with this answer as pictures (PNG), or why none did."
    },
    "standards": {
      "type": "object",
      "properties": {
        "pdfA": {
          "type": [
            "string",
            "null"
          ]
        },
        "pdfUa": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
    },
    "validation": {
      "type": "object",
      "description": "veraPDF on the standard the file declares (by the account's plan): profile, compliant, and the rules that fail — id (the standard's clause and test), title, plain (what it means for a reader), priority, count, pages; gated: true where the plan does not include it; error: why it could not run.",
      "additionalProperties": true
    },
    "missingFonts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Font families the document named that no face answered: their text took the next family of its list."
    },
    "skippedResources": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Images, fonts or style sheets the server could not fetch."
    }
  }
}
check_document annotations
{
  "title": "Check a document while you work on it",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
list_templates — Find a document template
Advertised by the server during the last successful anonymous check.
Advertised read-only

Lists the gallery's ready documents — invoices, quotes, receipts, statements, reports, contracts, letters, CVs, certificates, tickets, labels, menus and more — each a template with sample data. Search by a word ("invoice", "contract") or a category.

list_templates input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Words to look for in the name, purpose or category."
    },
    "category": {
      "enum": [
        "Finance",
        "Sales",
        "Business",
        "HR & Legal",
        "Government",
        "Logistics",
        "Health",
        "Events",
        "Personal",
        "Marketing",
        "Showcase"
      ],
      "type": "string",
      "description": "Only this category."
    }
  },
  "additionalProperties": false
}
list_templates output schema
{
  "type": "object",
  "required": [
    "templates"
  ],
  "properties": {
    "templates": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "category",
          "description",
          "paper"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "paper": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  }
}
list_templates annotations
{
  "title": "Find a document template",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
get_template — Read a template and its sample data
Advertised by the server during the last successful anonymous check.
Advertised read-only

Returns a gallery template's source and its sample data, to fill with the person's values (render_template) or to adapt into your own template.

get_template input schema
{
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The template's id, from list_templates."
    }
  },
  "additionalProperties": false
}
get_template output schema
{
  "type": "object",
  "required": [
    "id",
    "name",
    "category",
    "description",
    "paper",
    "template",
    "data"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "additionalProperties": true
    },
    "name": {
      "type": "string"
    },
    "paper": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "template": {
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  }
}
get_template annotations
{
  "title": "Read a template and its sample data",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
open_in_editor — Open in the ReflowPDF editor
Advertised by the server during the last successful anonymous check.

Returns the edit link of a document in the ReflowPDF editor, where the person edits it on the page and downloads it: your HTML, or a template with its data (kept as template and data, both editable). Use when the person wants to change the document themselves; you can read their changes and change it too (get_document, update_document).

open_in_editor input schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "The values of the template, if it is one.",
      "additionalProperties": true
    },
    "html": {
      "type": "string",
      "description": "The HTML document (or your own template source, with data)."
    },
    "name": {
      "type": "string",
      "description": "The document's name in the editor."
    },
    "template_id": {
      "type": "string",
      "description": "A gallery template's id, instead of html."
    }
  },
  "additionalProperties": false
}
open_in_editor output schema
{
  "type": "object",
  "required": [
    "url",
    "expiresAt",
    "notes"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The link; it works until expiresAt."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this link: how long it works, what it opens."
    },
    "revision": {
      "type": "integer"
    },
    "expiresAt": {
      "type": "string",
      "description": "When the link stops working (ISO 8601)."
    },
    "documentId": {
      "type": "string"
    }
  }
}
open_in_editor annotations
{
  "title": "Open in the ReflowPDF editor",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}
get_document — Read a document by its link
Advertised by the server during the last successful anonymous check.
Advertised read-only

Returns a document made with ReflowPDF (by you, or opened in the editor from your link) as it is now — the person may have edited it in the editor: its source HTML, template data and revision, which update_document takes as base_revision.

get_document input schema
{
  "type": "object",
  "required": [
    "document_id"
  ],
  "properties": {
    "document_id": {
      "type": "string",
      "description": "The document_id (or the edit link) from render_pdf, render_template or open_in_editor."
    }
  },
  "additionalProperties": false
}
get_document output schema
{
  "type": "object",
  "required": [
    "documentId",
    "revision",
    "by",
    "html",
    "data",
    "editUrl",
    "updatedAt"
  ],
  "properties": {
    "by": {
      "enum": [
        "assistant",
        "editor"
      ],
      "type": "string",
      "description": "Who wrote this revision: you, or the person in the editor."
    },
    "data": {
      "type": "object",
      "additionalProperties": true
    },
    "html": {
      "type": "string",
      "description": "The document's source (a template when data is not empty)."
    },
    "kind": {
      "enum": [
        "html",
        "template"
      ],
      "type": "string",
      "description": "An HTML document (its {{ … }} is text), or a template with its data."
    },
    "name": {
      "type": "string"
    },
    "guest": {
      "type": "boolean",
      "description": "Printed without an account: the pages carry the ReflowPDF mark."
    },
    "owned": {
      "type": "boolean",
      "description": "The document is the person's account's: your prints of it count to their plan."
    },
    "title": {
      "type": "string",
      "description": "The document's title."
    },
    "editUrl": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page",
          "url",
          "width",
          "height"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "page": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      },
      "description": "Pages as pictures (PNG), kept with the PDF for its day."
    },
    "revision": {
      "type": "integer"
    },
    "updatedAt": {
      "type": "string"
    },
    "documentId": {
      "type": "string"
    }
  }
}
get_document annotations
{
  "title": "Read a document by its link",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
update_document — Change a document by its link
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Writes a new version of a document by its link — e.g. the person asks in the chat to remove something on page 2 — and prints it again: the PDF link, the same edit link (the editor open on it shows the change). The new version replaces the one before. A change of a few places: edits — each replaces one exact piece of the source as get_document returned it (cheaper than sending the whole document, and nothing else moves); a rewrite: the whole new html. With base_revision: a document the person changed after you read it is refused, so read it again. The PDF carries the document's editable source (encrypted; keep_editable false leaves it out): import_pdf, or Import in the editor, restores it as this document, without AI.

update_document input schema
{
  "type": "object",
  "required": [
    "document_id",
    "base_revision"
  ],
  "properties": {
    "data": {
      "type": "object",
      "description": "The template's new data. Alone, only for a template (kind \"template\"); with html, non-empty data makes the document a template. Omitted: the data stays.",
      "additionalProperties": true
    },
    "html": {
      "type": "string",
      "description": "The whole new source. Omitted: the source stays (e.g. new data only). Not with edits."
    },
    "name": {
      "type": "string",
      "description": "A new name."
    },
    "edits": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "old_str",
          "new_str"
        ],
        "properties": {
          "new_str": {
            "type": "string"
          },
          "old_str": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false
      },
      "maxItems": 50,
      "minItems": 1,
      "description": "Changes to the source instead of the whole html, applied in order, all or none: each old_str is text copied exactly from the source (get_document, at base_revision) and must occur in it exactly once — add surrounding text to make it unique; new_str takes its place (empty deletes it)."
    },
    "pdf_a": {
      "enum": [
        "3a",
        "1b",
        "none"
      ],
      "type": "string",
      "description": "Declare PDF/A: \"3a\" — ISO 19005-3 level A, tagged, includes PDF/UA-1 (archive and accessibility at once); \"1b\" — ISO 19005-1 level B (PDF 1.4: transparency flattened into images). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason. Kept for the document's later prints; \"none\" declares none. Omitted: the document's setting stays."
    },
    "pdf_ua": {
      "enum": [
        1,
        2
      ],
      "type": "integer",
      "description": "The PDF/UA part the file declares: 1 (ISO 14289-1, PDF 1.7) — every print declares it; 2 (ISO 14289-2, PDF 2.0). Not with pdf_a. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason. Kept for the document's later prints; 1 returns to the default. Omitted: the document's setting stays."
    },
    "options": {
      "type": "object",
      "properties": {
        "lang": {
          "type": "string",
          "examples": [
            "en",
            "de-CH"
          ],
          "description": "The document language (BCP 47), used when `<html lang>` is not set."
        },
        "paper": {
          "type": "object",
          "properties": {
            "size": {
              "type": "string",
              "default": "A4",
              "examples": [
                "A4",
                "Letter",
                "100mm 150mm"
              ],
              "description": "A0–A10, B0–B10, C0–C10, JIS-B4, JIS-B5, Letter, Legal, Ledger, Tabloid, or two lengths such as \"210mm 297mm\"."
            },
            "margin": {
              "type": "string",
              "default": "20mm",
              "examples": [
                "20mm",
                "15mm 20mm"
              ],
              "description": "A CSS margin value."
            },
            "orientation": {
              "enum": [
                "portrait",
                "landscape"
              ],
              "type": "string",
              "default": "portrait",
              "description": "`portrait` or `landscape`."
            }
          },
          "description": "The default paper, applied as a user-agent `@page` rule: any property the document's own `@page` sets takes precedence. Without either: A4 portrait, 20 mm margins.",
          "additionalProperties": false
        },
        "pdf_a": {
          "enum": [
            "3a",
            "1b"
          ],
          "type": "string",
          "description": "Declare PDF/A conformance: `3a` is ISO 19005-3, conformance level A (tagged, includes PDF/UA-1); `1b` is ISO 19005-1, conformance level B (PDF 1.4: transparency is flattened into opaque images, text stays selectable). A document that cannot conform is refused with the reason. PDF/A depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_x": {
          "type": "object",
          "required": [
            "output_intent"
          ],
          "properties": {
            "profile": {
              "type": "string",
              "description": "Your printer's ICC output profile (device class `prtr`; Gray, RGB or CMYK; up to 8 MB), base64-encoded.",
              "contentEncoding": "base64"
            },
            "standard": {
              "enum": [
                "x-4",
                "x-1a"
              ],
              "type": "string",
              "default": "x-4",
              "description": "`x-4`: ISO 15930-7 (PDF 1.6, transparency and RGB preserved); `x-1a`: ISO 15930-4 (PDF 1.4, all colors converted to the output intent's inks, transparency flattened; requires a CMYK output intent)."
            },
            "output_intent": {
              "type": "string",
              "examples": [
                "FOGRA39",
                "CGATS21-2-CRPC5",
                "CGATS TR 001"
              ],
              "description": "A print condition of the engine's registry (e.g. `FOGRA39`, `CGATS21-2-CRPC5`, `CGATS TR 001`), or the name of your own `profile`."
            }
          },
          "description": "Declare PDF/X conformance for an output intent: colors, page boxes and the output intent of a print-ready file. PDF/X depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "title": {
          "type": "string",
          "maxLength": 500,
          "description": "The PDF title (defaults to the document's `<title>`, then to its first `<h1>`)."
        },
        "wtpdf": {
          "enum": [
            "accessibility",
            "reuse"
          ],
          "type": "string",
          "description": "Declare Well-Tagged PDF 1.0 conformance (PDF Association): a tagged PDF 2.0 that declares its conformance level. `accessibility` declares both levels (it includes the requirements of `reuse`); `reuse` declares the reuse level. The file also conforms to PDF/UA-2. Not with `pdf_a`, `pdf_x` or `pdf_ua: 1`, which use earlier PDF versions. Well-Tagged PDF depends on the account's plan; a print it does not include is refused with the reason."
        },
        "pdf_ua": {
          "enum": [
            1,
            2
          ],
          "type": "integer",
          "description": "Declare PDF/UA conformance: `1` (ISO 14289-1, PDF 1.7) or `2` (ISO 14289-2, PDF 2.0). Every PDF is tagged unless `tagged: false`. PDF/UA-2 depends on the account's plan; a print it does not include is refused with the reason."
        },
        "tagged": {
          "type": "boolean",
          "default": true,
          "description": "Produce a tagged PDF (logical structure for screen readers and reflow). `false` produces a smaller untagged file; not compatible with `pdf_ua` or `pdf_a: \"3a\"`."
        },
        "base_css": {
          "type": "string",
          "maxLength": 1048576,
          "description": "Your CSS, applied at the user-agent level: defaults that the document's own CSS can override."
        },
        "base_url": {
          "type": "string",
          "format": "uri",
          "examples": [
            "https://example.com/invoices/"
          ],
          "description": "The base URL (http or https) for the document's relative URLs; acts as `<base href>` unless the document sets its own."
        },
        "metadata": {
          "type": "object",
          "properties": {
            "author": {
              "type": "string",
              "maxLength": 1000
            },
            "subject": {
              "type": "string",
              "maxLength": 1000
            },
            "keywords": {
              "type": "string",
              "maxLength": 1000
            }
          },
          "description": "Overrides the document's `<meta name=\"author|description|keywords\">`.",
          "additionalProperties": false
        },
        "e_invoice": {
          "type": "object",
          "required": [
            "profile",
            "xml"
          ],
          "properties": {
            "xml": {
              "type": "string",
              "description": "The invoice as UN/CEFACT Cross Industry Invoice (CII) XML text, up to 5 MB in UTF-8. It is embedded as UTF-8, so its XML declaration must specify UTF-8 or no encoding."
            },
            "profile": {
              "enum": [
                "en16931",
                "xrechnung"
              ],
              "type": "string",
              "description": "`en16931`: the EN 16931 (Comfort) profile, embedded as `factur-x.xml`; `xrechnung`: the XRECHNUNG reference profile (the German CIUS), embedded as `xrechnung.xml`. The XML's specification identifier (BT-24) must match the profile exactly: `urn:cen.eu:en16931:2017`, or `urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0` (XRechnung 3.0)."
            }
          },
          "description": "Produce a hybrid e-invoice: Factur-X 1.0 / ZUGFeRD 2.5 (FNFE-MPE and FeRD, Factur-X 1.09.2), a PDF/A-3a with the invoice XML embedded. The XML is validated against its profile first (the KoSIT validator for XRechnung 3.0; the EN 16931 XSD and Schematron of Factur-X 1.09.2); an invoice that fails is refused with each violated rule. Its `attachments` use the formats Factur-X allows (§6.4: PDF, TXT, GIF, TIFF, JPG, CSV, XML, JSON, XLS, XLSX, ODS, each with its `mime_type`) and names other than the invoice's (`factur-x.xml`, `xrechnung.xml`, `zugferd-invoice.xml`). Not with `pdf_a: \"1b\"`, `pdf_ua: 2`, `pdf_x`, `wtpdf` or `encryption`. An e-invoice depends on the account's plan; a print it does not include is refused with the reason.",
          "additionalProperties": false
        },
        "max_pages": {
          "type": "integer",
          "maximum": 5000,
          "minimum": 1,
          "description": "Render at most this many pages; the rest is omitted."
        },
        "watermark": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "examples": [
                "DRAFT",
                "CONFIDENTIAL"
              ],
              "maxLength": 200,
              "description": "The watermark text."
            },
            "tile": {
              "type": "boolean",
              "default": false,
              "description": "Repeat the stamp across the page."
            },
            "above": {
              "type": "boolean",
              "default": false,
              "description": "Draw over the content instead of behind it."
            },
            "angle": {
              "type": "number",
              "default": -45,
              "description": "Rotation in degrees, counterclockwise."
            },
            "color": {
              "type": "string",
              "description": "A CSS color."
            },
            "image": {
              "type": "string",
              "description": "An https or data: URL of an image (instead of `text`)."
            },
            "opacity": {
              "type": "number",
              "default": 0.08,
              "maximum": 1,
              "minimum": 0,
              "description": "From 0 (transparent) to 1 (opaque)."
            },
            "position": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number"
                },
                "y": {
                  "type": "number"
                }
              },
              "description": "Place a single stamp at this position (points from the page's top-left corner) instead of the center.",
              "additionalProperties": false
            },
            "font_size": {
              "type": "number",
              "default": 60,
              "description": "In points."
            },
            "image_width": {
              "type": "number",
              "description": "Image width in points, with `image_height` (defaults to its natural size at 96 dpi)."
            },
            "image_height": {
              "type": "number",
              "description": "Image height in points, with `image_width`."
            },
            "tile_spacing": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "description": "[x, y] spacing of the tiles, in points."
            }
          },
          "description": "A text or image stamped on every page, behind the content unless `above` is set; marked as an artifact in a tagged PDF.",
          "additionalProperties": false
        },
        "encryption": {
          "type": "object",
          "required": [
            "owner_password"
          ],
          "properties": {
            "algorithm": {
              "enum": [
                "aes-256",
                "rc4-128"
              ],
              "type": "string",
              "default": "aes-256",
              "description": "Use `rc4-128` only for readers older than Acrobat 9."
            },
            "permissions": {
              "type": "array",
              "items": {
                "enum": [
                  "print",
                  "print-high",
                  "modify",
                  "copy",
                  "annotate",
                  "fill-forms",
                  "assemble"
                ],
                "type": "string"
              },
              "description": "Allowed actions; anything not listed is denied. Text extraction for accessibility (screen readers) is always allowed (ISO 32000-2, PDF/UA)."
            },
            "user_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password required to open the file. If empty or omitted, the file opens without a password, with the permissions below."
            },
            "owner_password": {
              "type": "string",
              "maxLength": 127,
              "description": "The password that lifts the permission restrictions."
            }
          },
          "description": "Encrypt the PDF (AES-256 by default, ISO 32000-2). Not compatible with PDF/A or PDF/X, whose standards forbid encryption.",
          "additionalProperties": false
        },
        "javascript": {
          "type": "boolean",
          "default": false,
          "description": "Run the document's scripts before rendering, against the engine's own DOM, with layout queries answered by the engine. Off by default: without it scripts do not run."
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "filename",
              "content"
            ],
            "properties": {
              "content": {
                "type": "string",
                "description": "The file content, base64-encoded.",
                "contentEncoding": "base64"
              },
              "element": {
                "type": "string",
                "description": "The `id` of the element the file belongs to (e.g. a table's data); the whole document if omitted."
              },
              "filename": {
                "type": "string",
                "examples": [
                  "data.csv"
                ],
                "description": "The attachment's file name."
              },
              "mime_type": {
                "type": "string",
                "examples": [
                  "text/csv"
                ],
                "description": "The media type."
              },
              "description": {
                "type": "string",
                "description": "A description shown by PDF readers."
              },
              "relationship": {
                "enum": [
                  "data",
                  "source",
                  "alternative",
                  "supplement",
                  "unspecified"
                ],
                "type": "string",
                "default": "unspecified",
                "description": "The file's relationship to the document (PDF/A-3 `AFRelationship`)."
              }
            },
            "additionalProperties": false
          },
          "maxItems": 20,
          "description": "Files to embed in the PDF (10 MB in total). With `pdf_a: \"3a\"` they are PDF/A-3 associated files. Not allowed with `pdf_a: \"1b\"` or `pdf_x`, whose standards forbid embedded files."
        },
        "compression": {
          "enum": [
            "fast",
            "default",
            "smallest"
          ],
          "type": "string",
          "default": "default",
          "description": "Lossless compression effort for streams. Images are never resampled."
        },
        "print_scale": {
          "type": "number",
          "maximum": 0.99,
          "minimum": 0.06,
          "description": "Scale the document down by this factor."
        },
        "allow_remote": {
          "type": "boolean",
          "default": true,
          "description": "Fetch remote images, stylesheets and fonts over http(s) (public addresses only). `false` renders with embedded resources only."
        },
        "color_scheme": {
          "enum": [
            "light",
            "dark"
          ],
          "type": "string",
          "default": "light",
          "description": "The value of the `prefers-color-scheme` media feature."
        },
        "input_format": {
          "enum": [
            "html",
            "xhtml"
          ],
          "type": "string",
          "default": "html",
          "description": "`xhtml`: parse the document as XML."
        },
        "header_footer": {
          "type": "object",
          "properties": {
            "color": {
              "type": "string",
              "examples": [
                "#666666"
              ],
              "description": "A CSS color."
            },
            "footer": {
              "type": "string",
              "maxLength": 500,
              "description": "Text in the bottom margin of every page; `{pageNum}` and `{totalPages}` are replaced."
            },
            "header": {
              "type": "string",
              "examples": [
                "Quarterly report, page {pageNum} of {totalPages}"
              ],
              "maxLength": 500,
              "description": "`{pageNum}` and `{totalPages}` are replaced on each page."
            },
            "font_size": {
              "type": "string",
              "default": "7.5pt",
              "description": "A CSS length."
            },
            "footer_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the footer."
            },
            "header_align": {
              "enum": [
                "left",
                "center",
                "right"
              ],
              "type": "string",
              "default": "center",
              "description": "Alignment of the header."
            }
          },
          "description": "A line of text in the top and bottom margins of every page. CSS `@page` margin boxes (`@top-center { content: … counter(page) }`) do the same in the document itself, with full styling.",
          "additionalProperties": false
        },
        "shrink_to_fit": {
          "type": "boolean",
          "default": false,
          "description": "Scale a document wider than the page down to fit, as browsers do. Off by default, so lengths stay physical."
        },
        "object_streams": {
          "type": "boolean",
          "default": true,
          "description": "Pack objects into object streams (smaller files). `false` writes a classic cross-reference table for readers older than PDF 1.5."
        },
        "default_font_size": {
          "type": "string",
          "default": "12pt",
          "description": "The size of CSS `medium`: the document's base font size."
        }
      },
      "description": "The engine's print options — the same as the ReflowPDF API's `options` (https://api.reflowpdf.com/docs/), each checked the same way: a wrong or conflicting one is refused with what to change. Shrinking like a browser's print: shrink_to_fit (fit to the page width) or print_scale (a factor, e.g. 0.8 for 80%). pdf_ua, pdf_a and shrink_to_fit may also be given outside options. Kept for the document's later prints; given, they replace the document's options (an empty object clears them). Omitted: the document's options stay.",
      "additionalProperties": false
    },
    "preview": {
      "type": "boolean",
      "description": "Pictures (PNG) of pages come with the answer, so you can check the layout, fonts and images before giving the links. Default: true."
    },
    "filename": {
      "type": "string",
      "description": "A new PDF file name, kept for its later prints. Default: the name it was printed with (render_pdf filename), else its <title>."
    },
    "document_id": {
      "type": "string",
      "description": "The document_id (or the edit link)."
    },
    "base_revision": {
      "type": "integer",
      "description": "The revision you read (get_document, or the last result). Required: a document the person changed after it is refused, never overwritten."
    },
    "keep_editable": {
      "type": "boolean",
      "description": "Embed the document's source in the PDF so it reopens in the ReflowPDF editor as this document, without AI. Default: true. Kept for the document's later prints. Omitted: the document's setting stays."
    },
    "preview_pages": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "maxItems": 4,
      "description": "Which pages to see, 1-based; -1 is the last page. Default: page 1 and the last page (a page that spilled over shows there). Up to 4, e.g. [1, 2, -1]. Every answer has the outline: which heading starts on which page."
    },
    "shrink_to_fit": {
      "type": "boolean",
      "description": "Print a document wider than its page smaller, to fit, as a browser's print does: every length then prints scaled down. Default: false, lengths print at their size (20mm is 20mm). Prefer fitting the layout to the page; use this for a page made for a screen. Kept for the document's later prints. Omitted: the document's setting stays."
    }
  },
  "additionalProperties": false
}
update_document output schema
{
  "type": "object",
  "required": [
    "url",
    "expiresAt",
    "filename",
    "pages",
    "bytes",
    "mark",
    "notes",
    "title",
    "pdfUrl",
    "sizeKb",
    "paper",
    "guest",
    "previews"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The link, valid 24 hours."
    },
    "mark": {
      "enum": [
        "none",
        "guest",
        "free-allowance-used"
      ],
      "type": "string",
      "description": "Whether the PDF carries the ReflowPDF mark, and why."
    },
    "bytes": {
      "type": "integer"
    },
    "guest": {
      "type": "boolean",
      "description": "Printed without an account: the pages carry the ReflowPDF mark."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this PDF: how long its link works, its mark, what was not fetched or filled."
    },
    "pages": {
      "type": "integer"
    },
    "paper": {
      "type": "string",
      "description": "Its paper, e.g. \"A4\", \"Letter\", \"210 × 99 mm\"; empty when unknown."
    },
    "title": {
      "type": "string",
      "description": "The document's title."
    },
    "pdfUrl": {
      "type": "string",
      "description": "The PDF (the same link as url)."
    },
    "sizeKb": {
      "type": "integer",
      "description": "The PDF's size in KB."
    },
    "timing": {
      "type": "object",
      "properties": {
        "writeMs": {
          "type": "number"
        },
        "layoutMs": {
          "type": "number"
        }
      },
      "description": "The engine's own parts of it, when it states them: layoutMs (styles, layout and pagination) and writeMs (writing the PDF)."
    },
    "editUrl": {
      "type": "string",
      "description": "The document in the ReflowPDF editor: the person edits it there (the link is the document; it lasts while it is used)."
    },
    "outline": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "level",
          "title"
        ],
        "properties": {
          "page": {
            "type": "integer"
          },
          "level": {
            "type": "integer"
          },
          "title": {
            "type": "string"
          }
        }
      },
      "description": "The document's headings (h1–h6, the PDF's bookmarks) in order, each with the page it starts on: pick preview_pages by it."
    },
    "preview": {
      "type": "string",
      "description": "Which pages came with this answer as pictures (PNG), or why none did."
    },
    "filename": {
      "type": "string"
    },
    "previews": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "page",
          "url",
          "width",
          "height"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "page": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      },
      "description": "Pages as pictures (PNG), kept with the PDF for its day."
    },
    "renderMs": {
      "type": "integer",
      "description": "How long the print took on the server, in milliseconds (the engine and its adapter)."
    },
    "revision": {
      "type": "integer",
      "description": "Its revision: name it to update_document as base_revision."
    },
    "expiresAt": {
      "type": "string",
      "description": "When the link stops working (ISO 8601)."
    },
    "standards": {
      "type": "object",
      "properties": {
        "pdfA": {
          "type": [
            "string",
            "null"
          ]
        },
        "pdfUa": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "description": "What the PDF declares, read from its file: pdfUa (its PDF/UA part) and pdfA (its PDF/A part and level, e.g. \"3a\"), null when it declares none."
    },
    "documentId": {
      "type": "string",
      "description": "The document, for get_document and update_document."
    },
    "missingFonts": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Font families the document named that no face answered: their text took the next family of its list."
    },
    "missingVariables": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Template values the data did not have (printed empty)."
    },
    "skippedResources": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Images, fonts or style sheets the server could not fetch."
    }
  }
}
update_document annotations
{
  "title": "Change a document by its link",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": true
}
upload_image — Keep an image for a document
Advertised by the server during the last successful anonymous check.

Keeps an image and returns its link, to use as <img src> or CSS url() in render_pdf, render_template, open_in_editor and update_document — so the document stays small when you read it back. Give one of: image — a picture the person attached in the chat, as your client passes attached files to tools; image_base64 — bytes you have yourself (one you made, a small file you can read: base64 is text you write, so tens of KB). PNG, JPEG, HEIC, GIF, WebP or AVIF; a photo over 10 MB or in HEIC is brought to print size (4096 px on the long side). A picture the person attached that you can see but have no file of: ask_for_images gives them a link to upload it from their device. An image at a public https address needs no upload: the document uses that address. An SVG goes into the HTML as it is. The image lasts 30 days after a document using it last changed.

upload_image input schema
{
  "type": "object",
  "properties": {
    "image": {
      "type": "object",
      "required": [
        "download_url",
        "file_id"
      ],
      "properties": {
        "file_id": {
          "type": "string"
        },
        "file_name": {
          "type": "string"
        },
        "mime_type": {
          "type": "string"
        },
        "download_url": {
          "type": "string",
          "description": "A temporary https address of the file."
        }
      },
      "description": "A picture the person attached in the chat.",
      "additionalProperties": true
    },
    "image_base64": {
      "type": "string",
      "description": "The image's bytes, base64 (a data: URI is taken too)."
    }
  },
  "additionalProperties": false
}
upload_image output schema
{
  "type": "object",
  "required": [
    "url",
    "type",
    "bytes",
    "width",
    "height"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The image's link, for <img src>."
    },
    "type": {
      "type": "string"
    },
    "bytes": {
      "type": "integer"
    },
    "width": {
      "type": "integer",
      "description": "Pixels (0: not read from this format)."
    },
    "height": {
      "type": "integer"
    }
  }
}
upload_image annotations
{
  "title": "Keep an image for a document",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
ask_for_images — Ask the person for their images
Advertised by the server during the last successful anonymous check.

For a picture the person has on their phone or computer and has not attached in the chat: gives a link where they upload it — their logo, photos, a signature scan; also when you see an attached picture but have no file of it. The person opens the link and picks the files; ask_for_images with the upload_id then returns each image's link (with its size and file name), for the document in render_pdf or update_document. The link also accepts the file’s bytes by POST. The link works for 24 hours and takes up to 50 images — photos straight from a phone or a camera too (HEIC, up to 40 MB each; brought to print size, 4096 px on the long side).

ask_for_images input schema
{
  "type": "object",
  "properties": {
    "note": {
      "type": "string",
      "description": "What to upload, shown to the person on the page, e.g. \"Your company logo (PNG with a transparent background is best)\". Only for a new link."
    },
    "upload_id": {
      "type": "string",
      "description": "The upload_id of a link you gave: what the person has uploaded to it so far."
    }
  },
  "additionalProperties": false
}
ask_for_images output schema
{
  "type": "object",
  "required": [
    "uploadUrl",
    "uploadId",
    "expiresAt",
    "images",
    "notes"
  ],
  "properties": {
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "url",
          "type",
          "bytes",
          "width",
          "height",
          "name"
        ],
        "properties": {
          "url": {
            "type": "string",
            "description": "The image's link, for <img src>."
          },
          "name": {
            "type": "string",
            "description": "The file name on the person's device."
          },
          "type": {
            "type": "string"
          },
          "bytes": {
            "type": "integer"
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          }
        }
      }
    },
    "uploadId": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string"
    },
    "uploadUrl": {
      "type": "string",
      "description": "The link for the person."
    }
  }
}
ask_for_images annotations
{
  "title": "Ask the person for their images",
  "readOnlyHint": false,
  "openWorldHint": false,
  "idempotentHint": false,
  "destructiveHint": false
}
import_pdf — Import a PDF into the editor
Advertised by the server during the last successful anonymous check.
Open-world

Returns a link (valid 24 hours) that opens an existing PDF in the ReflowPDF editor's import, which rebuilds it as an editable document. A PDF these tools printed, or one exported from the ReflowPDF editor with «Keep the PDF editable», is restored from its own source with one click (Restore), without AI; any other is rebuilt by AI, which needs a signed-in ReflowPDF account and uses its AI pages (the editor shows how many first). A document made with these tools needs no import: its edit link opens it. Give the PDF the person attached in the chat (pdf, as your client passes attached files), a public https URL of it, or its bytes in base64 (small files). A PDF you cannot pass on: the person opens the editor (https://app.reflowpdf.com) and imports it there.

import_pdf input schema
{
  "type": "object",
  "properties": {
    "pdf": {
      "type": "object",
      "required": [
        "download_url",
        "file_id"
      ],
      "properties": {
        "file_id": {
          "type": "string"
        },
        "file_name": {
          "type": "string"
        },
        "mime_type": {
          "type": "string"
        },
        "download_url": {
          "type": "string",
          "description": "A temporary https address of the file."
        }
      },
      "description": "A PDF the person attached in the chat, as your client passes attached files to tools.",
      "additionalProperties": true
    },
    "url": {
      "type": "string",
      "description": "A public https address of the PDF."
    },
    "name": {
      "type": "string",
      "description": "The document's name. Default: the file's."
    },
    "pdf_base64": {
      "type": "string",
      "description": "The PDF's bytes, base64 (up to 20 MB)."
    }
  },
  "additionalProperties": false
}
import_pdf output schema
{
  "type": "object",
  "required": [
    "url",
    "expiresAt",
    "notes"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The link; it works until expiresAt."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Facts about this link: how long it works, what it opens."
    },
    "revision": {
      "type": "integer"
    },
    "expiresAt": {
      "type": "string",
      "description": "When the link stops working (ISO 8601)."
    },
    "documentId": {
      "type": "string"
    }
  }
}
import_pdf annotations
{
  "title": "Import a PDF into the editor",
  "readOnlyHint": false,
  "openWorldHint": true,
  "idempotentHint": false,
  "destructiveHint": false
}
connect_account — Connect the person's ReflowPDF account
Advertised by the server during the last successful anonymous check.
Advertised read-only

Signs the person in to their ReflowPDF account (any ReflowPDF account), when they want PDFs without the ReflowPDF mark, their plan's pages, or the documents you make kept in their account. Their client shows a Connect button; once they have signed in, every call of yours is their account's. Without it everything works too, as a guest: every page, with a small mark.

connect_account input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
connect_account output schema
{
  "type": "object",
  "required": [
    "connected",
    "notes"
  ],
  "properties": {
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connected": {
      "type": "boolean"
    }
  }
}
connect_account annotations
{
  "title": "Connect the person's ReflowPDF account",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
read_guide — How to write documents for ReflowPDF
Advertised by the server during the last successful anonymous check.
Advertised read-only

The engine's guide: "overview" (the tools), "html" (paper, headers/footers, page numbers, tables of contents, footnotes, fonts, images, accessibility), "pages" (page kinds, breaks and keeping together, covers, numbering, bleed and crop marks), "design" (columns, drop caps, page decorations and watermarks, spacing, images and text wrap, typography), "charts" (the chart block), "codes" (QR codes and barcodes), "forms" (fillable fields), "templates" (the template language).

read_guide input schema
{
  "type": "object",
  "properties": {
    "topic": {
      "enum": [
        "overview",
        "html",
        "pages",
        "design",
        "charts",
        "codes",
        "forms",
        "templates"
      ],
      "type": "string",
      "description": "Default: html."
    }
  },
  "additionalProperties": false
}
read_guide annotations
{
  "title": "How to write documents for ReflowPDF",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

9 advertised

guide-overview — ReflowPDF for assistants

Advertised by the server during the last successful anonymous check.

What the tools do and how to work with them.

guide-overview URI
reflowpdf://guide/overview

MIME type: text/markdown

guide-html — Writing HTML for ReflowPDF

Advertised by the server during the last successful anonymous check.

Paper, page breaks, headers and footers, page numbers, tables of contents, footnotes, fonts, images, accessibility.

guide-html URI
reflowpdf://guide/html

MIME type: text/markdown

guide-pages — Pages and breaks

Advertised by the server during the last successful anonymous check.

Page sizes and kinds (first, left/right, named, landscape), page breaks, keeping things together, headers and footers, numbering, contents and footnotes, bleed and crop marks.

guide-pages URI
reflowpdf://guide/pages

MIME type: text/markdown

guide-design — Design

Advertised by the server during the last successful anonymous check.

Multi-column text, drop caps, page decorations and watermarks, spacing, images and text wrap, typography and lists.

guide-design URI
reflowpdf://guide/design

MIME type: text/markdown

guide-charts — Charts

Advertised by the server during the last successful anonymous check.

The chart block the engine draws as vector graphics (bar, line, pie, donut).

guide-charts URI
reflowpdf://guide/charts

MIME type: text/markdown

guide-codes — QR codes and barcodes

Advertised by the server during the last successful anonymous check.

Vector QR codes and barcodes (Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF) the engine draws from a block.

guide-codes URI
reflowpdf://guide/codes

MIME type: text/markdown

guide-forms — Fillable forms

Advertised by the server during the last successful anonymous check.

Form controls that print as PDF form fields, signatures included.

guide-forms URI
reflowpdf://guide/forms

MIME type: text/markdown

guide-templates — Templates with data

Advertised by the server during the last successful anonymous check.

The template language of render_template: output, loops, conditions, filters.

guide-templates URI
reflowpdf://guide/templates

MIME type: text/markdown

document-card — ReflowPDF document card

Advertised by the server during the last successful anonymous check.

Shows the printed pages of the document with Download and Edit buttons.

document-card URI
ui://reflowpdf/document-card.html

MIME type: text/html;profile=mcp-app

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

Too few checks for a percentage yet (1 of 1 answered).

  1. 2026-12-01: 1 of 1 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
901 ms
95th percentile latency
901 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 901 ms · metadata changed · 13 tool(s), 9 resource(s), 0 resource template(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http reflowpdf-mcp https://app.reflowpdf.com/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add reflowpdf-mcp --url https://app.reflowpdf.com/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable reflowpdf-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "reflowpdf-mcp": {
      "url": "https://app.reflowpdf.com/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "reflowpdf-mcp": {
      "type": "streamableHttp",
      "url": "https://app.reflowpdf.com/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start reflowpdf-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "reflowpdf-mcp": {
      "type": "http",
      "url": "https://app.reflowpdf.com/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http reflowpdf-mcp https://app.reflowpdf.com/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://app.reflowpdf.com/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "reflowpdf-mcp": {
      "serverUrl": "https://app.reflowpdf.com/mcp"
    }
  }
}

Let your agent find its tools

Find servers like ReflowPDF MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run ReflowPDF MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing