Skip to main content
Glama

PDF-Tools MCP Server

by Theorhd

generate_pdf_from_text

Convert plain text content into PDF documents with customizable formatting options including fonts, margins, and file naming.

Instructions

Generate a PDF from plain text using PDFKit

Input Schema

NameRequiredDescriptionDefault
optionsNoPDF formatting options
output_dirNoOutput directory (optional, defaults to Downloads)/root/Downloads
output_filenameYesName of the output PDF file (without path)
text_contentYesText content to convert to PDF

Input Schema (JSON Schema)

{ "properties": { "options": { "description": "PDF formatting options", "properties": { "font": { "default": "Helvetica", "type": "string" }, "fontSize": { "default": 12, "type": "number" }, "margins": { "properties": { "bottom": { "default": 50, "type": "number" }, "left": { "default": 50, "type": "number" }, "right": { "default": 50, "type": "number" }, "top": { "default": 50, "type": "number" } }, "type": "object" } }, "type": "object" }, "output_dir": { "default": "/root/Downloads", "description": "Output directory (optional, defaults to Downloads)", "type": "string" }, "output_filename": { "description": "Name of the output PDF file (without path)", "type": "string" }, "text_content": { "description": "Text content to convert to PDF", "type": "string" } }, "required": [ "text_content", "output_filename" ], "type": "object" }

Other Tools from PDF-Tools MCP Server

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/Theorhd/Pdftools-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server