Api2pdf AI Agent

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Api2pdf MCP or direct API to convert HTML to PDF, generate PDFs from URLs, merge and compress PDF files, and automate document workflows—all through natural language.

Connect on Telegram
Api2pdf logo
Api2pdf
API KEY

Api2Pdf is a REST API for generating PDFs from HTML, URLs, and documents using powerful engines like wkhtmltopdf and Headless Chrome. It streamlines document conversion and automation for developers and businesses.

10 Tools 0 Triggers

▪ Tools & Triggers

Supported Tools and Triggers

Every Api2pdf action and event your agent gets out of the box.

Add Header Footer

Convert HTML to PDF with customizable headers and footers using Headless Chrome. Use for generating reports, invoices, or documents with consistent page numbering, titles, dates, or branding on every page.

Check API Status

Tool to check the health status of the API2PDF service. Use when you need to verify if the API is available and responding. This endpoint does not require authentication and returns a simple status indicator.

Delete PDF

Delete a previously generated PDF from API2PDF storage by its response ID. By default, API2PDF automatically deletes PDFs after 24 hours. Use this tool when you need to immediately remove a PDF for security or cleanup purposes. The response_id parameter is the ResponseId returned from any PDF generation operation (e.g., merge, convert HTML to PDF, etc.).

Extract PDF Pages

Tool to extract specific pages from a PDF document. Use when you need only certain pages from a larger PDF file. Provide a URL to the source PDF and optionally a page range (0-indexed, end exclusive). Returns a URL to the extracted PDF.

LibreOffice PDF to HTML

Tool to convert a PDF document to HTML using LibreOffice. Use when you need HTML output of a PDF file (experimental; images may be excluded).

LibreOffice Thumbnail

Tool to generate a thumbnail image of a document using LibreOffice. Use when you need a quick visual preview of a PDF or Office file's first page.

Merge PDFs

Merge multiple PDF documents into a single PDF file. Provide a list of publicly accessible PDF URLs, and they will be combined in the order specified. The merged PDF is available via a download URL for 24 hours.

Optimize PDF

Tool to optimize a PDF document to reduce file size while maintaining quality. Use when you need to minimize storage or bandwidth for an existing PDF.

Reorder PDF Pages

Reorder pages of a PDF document by specifying a new page sequence. Provide a URL to the source PDF and a list of zero-based page indices in the desired order. For example, to reverse a 3-page PDF, use pages=[2,1,0]. The reordered PDF is available via a download URL for 24 hours.

Generate Barcode or QR Code

Tool to generate barcodes or QR codes using Zebra Crossing (ZXING). Use when you need a barcode or QR code image from text values.

Put Api2pdf on autopilot

Connect Api2pdf to your TeleClaw agent and run these 10 tools straight from Telegram.

Get started free