PDF Text Extractor
Extract text content from PDF documents with support for page selection, formatting options, and multi-language processing
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| pdfFile | file (Upload required) | Yes | Supports PDF files up to 100MB |
| pageRange | text | No | Specify pages to extract (1-5 for range, 3 for single page, 1,3,5 for multiple). Leave empty for all pages. |
| outputFormat | select | No | - |
| preserveFormatting | checkbox | No | Keep original layout, spacing, and formatting as much as possible |
| removeExtraWhitespace | checkbox | No | Clean up excessive spaces and line breaks |
| includeLineNumbers | checkbox | No | Add line numbers to the extracted text |
| encoding | select | No | - |
File type parameters need to be uploaded first via POST /upload/pdf-text-extractor to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-pdf-text-extractor": {
"name": "pdf-text-extractor",
"description": "Extract text content from PDF documents with support for page selection, formatting options, and multi-language processing",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-text-extractor",
"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]