Categories

Rich Text JSON to PDF

Convert TipTap, Quill, or Slate JSON exports into a styled PDF document

Convert rich text editor JSON exports to PDF. **Supported editors:** TipTap, Quill, Slate **Input:** paste JSON or upload a JSON file **Output:** printable PDF with clean typography

Example Results

1 examples

Richtext JSON

TipTap JSON rendered to PDF

richtext-json-to-pdf-example1.pdf View File
View input parameters
{ "jsonContent": "{\"type\":\"doc\",\"content\":[{\"type\":\"heading\",\"attrs\":{\"level\":2},\"content\":[{\"type\":\"text\",\"text\":\"Release Update\"}]},{\"type\":\"paragraph\",\"content\":[{\"type\":\"text\",\"text\":\"Generated sample.\"}]}]}", "editorType": "tiptap", "documentTitle": "TipTap Sample" }

Click to upload file or drag and drop file here

Maximum file size: 5MB Supported formats: application/json, text/plain

API Documentation

Request Endpoint

POST /en/api/tools/richtext-json-to-pdf

Request Parameters

Parameter Name Type Required Description
jsonContent textarea No -
jsonFile file (Upload required) No -
editorType select No -
documentTitle text No -
baseFontSize number No -
pageSize select No -
landscape checkbox No -
printBackground checkbox No -
marginTop number No -
marginBottom number No -
marginLeft number No -
marginRight number No -
waitUntil select No -
waitTime number No -

File type parameters need to be uploaded first via POST /upload/richtext-json-to-pdf to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-richtext-json-to-pdf": {
      "name": "richtext-json-to-pdf",
      "description": "Convert TipTap, Quill, or Slate JSON exports into a styled PDF document",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=richtext-json-to-pdf",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]