Api2pdf
Overview
SLUG: API2PDF
Description
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.
Authentication Details
API Key
Connecting to Api2pdf
Create an auth config
Use the dashboard to create an auth config for the Api2pdf toolkit. This allows you to connect multiple Api2pdf accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create Integration”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
API2PDF_DELETE_PDF
Tool Name: Delete PDF
Description
Action Parameters
Action Response
API2PDF_EXTRACT_PAGES
Tool Name: Extract PDF Pages
Description
Action Parameters
Action Response
API2PDF_LIBREOFFICE_PDF_TO_HTML
Tool Name: LibreOffice PDF to HTML
Description
Action Parameters
Action Response
API2PDF_LIBREOFFICE_THUMBNAIL
Tool Name: LibreOffice Thumbnail
Description
Action Parameters
Action Response
API2PDF_MERGE_PDFS
Tool Name: Merge PDFs
Description
Action Parameters
Action Response
API2PDF_OPTIMIZE_PDF
Tool Name: Optimize PDF
Description
Action Parameters
Action Response
API2PDF_REORDER_PAGES
Tool Name: Reorder PDF Pages
Description
Action Parameters
Action Response
API2PDF_ZEBRA_GENERATE_BARCODE
Tool Name: Generate Barcode or QR Code
Description
Action Parameters
Action Response