This guide walks you through connecting Api2pdf to Pydantic AI using the Composio tool router. By the end, you'll have a working Api2pdf agent that can merge and optimize PDFs, extract and reorder pages, add headers and footers, and generate barcodes and QR codes through natural language commands.
This guide will help you understand how to give your Pydantic AI 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.


