This guide walks you through connecting Api2pdf to LlamaIndex using the Composio tool router. By the end, you'll have a working Api2pdf agent that can merge monthly invoices into one pdf, extract specific pages from a large pdf, add custom header and footer to document, convert pdf report to html for web use through natural language commands.
This guide will help you understand how to give your LlamaIndex agent real control over a Api2pdf account through Composio's Api2pdf MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.








