Document Tools
Create newspaper/magazine style documents with 2 or 3 columns
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/pdf-multi-column-layout' \
-H 'Content-Type: application/json' \
-d '{"content":"Enter your article text here...","headline":"Article Headline","subheadline":"Article subheadline or summary","author":"By John Doe","date":"January 1, 2025","columnCount":"2","gutterWidth":18,"columnBalance":"auto","textAlign":"justify","headlineFontSize":24,"bodyFontSize":10,"lineHeight":1.2,"showSeparatorLines":false,"showDropCap":false,"dropCapLines":3,"showHeader":false,"headerText":"Document Header","headerAlignment":"center","showFooter":false,"footerText":"Page {page} of {total}","footerAlignment":"center","marginTop":72,"marginBottom":72,"marginLeft":72,"marginRight":72}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/pdf-multi-column-layout| Name | Type | Required | Description |
|---|---|---|---|
| content | textarea | Yes | — |
| headline | text | No | — |
| subheadline | text | No | — |
| author | text | No | — |
| date | text | No | — |
| columnCount | select | No | — |
| gutterWidth | number | No | Space between columns |
| columnBalance | select | No | — |
| textAlign | select | No | — |
| headlineFontSize | number | No | — |
| bodyFontSize | number | No | — |
| lineHeight | number | No | — |
| showSeparatorLines | checkbox | No | — |
| showDropCap | checkbox | No | — |
| dropCapLines | number | No | — |
| showHeader | checkbox | No | — |
| headerText | text | No | — |
| headerAlignment | select | No | — |
| showFooter | checkbox | No | — |
| footerText | text | No | — |
| footerAlignment | select | No | — |
| marginTop | number | No | — |
| marginBottom | number | No | — |
| marginLeft | number | No | — |
| marginRight | number | No | — |
File result
{
"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)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-pdf-multi-column-layout": {
"name": "pdf-multi-column-layout",
"description": "Create newspaper/magazine style documents with 2 or 3 columns",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-multi-column-layout",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-multi-column-layout",
"arguments": {
"content": "Enter your article text here...",
"headline": "Article Headline",
"subheadline": "Article subheadline or summary",
"author": "By John Doe",
"date": "January 1, 2025",
"columnCount": "2",
"gutterWidth": 18,
"columnBalance": "auto",
"textAlign": "justify",
"headlineFontSize": 24,
"bodyFontSize": 10,
"lineHeight": 1.2,
"showSeparatorLines": false,
"showDropCap": false,
"dropCapLines": 3,
"showHeader": false,
"headerText": "Document Header",
"headerAlignment": "center",
"showFooter": false,
"footerText": "Page {page} of {total}",
"footerAlignment": "center",
"marginTop": 72,
"marginBottom": 72,
"marginLeft": 72,
"marginRight": 72
}
}
}Questions or issues? Contact [email protected]