create-simple-pdf
Generate basic PDF documents with text content using this simplified tool. Supports emoji rendering and document title metadata for straightforward PDF creation.
Instructions
Create a simple PDF with just text content. A simplified version of create-pdf for basic use cases. Supports emoji rendering.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filename | No | Optional filename for the PDF (defaults to "document.pdf"). SECURITY: Filenames are sanitized and written to a sandboxed directory: • Default: ~/.mcp-pdf/ • Override: Set PDF_OUTPUT_DIR environment variable • Path traversal attempts (.., /, etc) are blocked • Only alphanumeric, spaces, hyphens, underscores, and dots allowed • If file exists, timestamp is appended automatically | |
text | Yes | Text content for the PDF | |
title | No | Document title metadata |
Input Schema (JSON Schema)
{
"properties": {
"filename": {
"description": "Optional filename for the PDF (defaults to \"document.pdf\").\n\nSECURITY: Filenames are sanitized and written to a sandboxed directory:\n• Default: ~/.mcp-pdf/\n• Override: Set PDF_OUTPUT_DIR environment variable\n• Path traversal attempts (.., /, etc) are blocked\n• Only alphanumeric, spaces, hyphens, underscores, and dots allowed\n• If file exists, timestamp is appended automatically",
"type": "string"
},
"text": {
"description": "Text content for the PDF",
"type": "string"
},
"title": {
"description": "Document title metadata",
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
}