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.
Fields to fill in FlyMyAI
| Field | Details |
|---|---|
Api2Pdf API Key | Your 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.
| Action | What it does | Required inputs |
|---|---|---|
API2PDF_ADD_HEADER_FOOTER | Tool 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_PDF | Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id. | response_id |
API2PDF_EXTRACT_PAGES | Tool 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_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). | url |
API2PDF_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. | url |
API2PDF_MERGE_PDFS | Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side. | urls |
API2PDF_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. | url |
API2PDF_REORDER_PAGES | Tool 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_BARCODE | Tool 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 |
Links
We love our partners - FlyMy.AI builds with the best. Thanks, API2PDF!