Skip to main content
API2PDF logo

API2PDF

Api2Pdf is a REST API that enables developers to generate PDFs from HTML, URLs, and various document formats using engines like wkhtmltopdf, Headless Chrome, and LibreOffice.

This is a first-class FlyMyAI MCP. Agents discover it automatically via tool search and call the actions below on demand - you never wire it up by hand. See the Composio catalog for how discovery works.

Connect

API2PDF authenticates with an API key. Generate the credential in your API2PDF account, then paste it into FlyMyAI the first time an agent uses an API2PDF action.

Get your API2PDF credential →

Fields to fill in FlyMyAI

FieldDetails
Api2Pdf API KeyYour unique API key obtained from the Api2Pdf portal. (required)

Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

ActionWhat it doesRequired inputs
API2PDF_ADD_HEADER_FOOTERTool to add headers and footers to a pdf document. use when you need consistent page numbering, titles, or custom branding on every page.html
API2PDF_DELETE_PDFTool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.response_id
API2PDF_EXTRACT_PAGESTool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.url
API2PDF_LIBREOFFICE_PDF_TO_HTMLTool to convert a pdf document to html using libreoffice. use when you need html output of a pdf file (experimental; images may be excluded).url
API2PDF_LIBREOFFICE_THUMBNAILTool 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.url
API2PDF_MERGE_PDFSTool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.urls
API2PDF_OPTIMIZE_PDFTool 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.url
API2PDF_REORDER_PAGESTool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.url, pages
API2PDF_ZEBRA_GENERATE_BARCODETool to generate barcodes or qr codes using zebra crossing (zxing). use when you need a barcode or qr code image from text values.format, value
We love our partners - FlyMy.AI builds with the best. Thanks, API2PDF!