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.
Verdict
Common use cases
- Merge contract drafts into one signed PDF
- Add page numbers to a final report
- Extract executive summary pages for email
- Generate QR codes for event check-in
- Compress large PDFs before client delivery
Integration
- Vendor
- API2PDF
- Category
- docs
- Auth
- API_KEY
- Tools
- 9
- Composio slug
api2pdf
Tools
- 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.
- Delete PDFdestructive
Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.
- Extract PDF Pages
Tool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.
- 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.
- 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
Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.
- 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
Tool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.
Setup
Setup guide
- 11. Open your Switchy workspace settings and navigate to the MCP Integrations panel. 2. Click 'Add Integration' and select API2PDF from the catalog. 3. Visit api2pdf.com, sign up or log in, then copy your API key from the dashboard. 4. Paste the key into Switchy's API2PDF configuration field and click 'Connect'. 5. Switchy will validate the key and confirm the connection. 6. Open any Space, type '@API2PDF merge these three PDFs' and attach the files — if the MCP responds with a download link, setup succeeded. 7. You can now invoke any of the nine tools by @mentioning API2PDF and describing the task in plain language.
What teammates see: by default, memories from API2PDF are scoped to the Space (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Spaces have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Merge Proposal Sections
@API2PDF merge the three attached PDFs in order: intro, pricing, terms. Return a single download link.Open in a Space →
Stamp Page Numbers
@API2PDF add a footer with page numbers to this PDF. Center align, 10pt font, format as 'Page X of Y'.Open in a Space →
Extract Key Pages
@API2PDF extract pages 2, 5, and 8 from this quarterly report. I need just the summary slides.Open in a Space →
Generate Event QR Code
@API2PDF generate a QR code for https://event.example.com/register. Make it 500x500 pixels, PNG format.Open in a Space →
Compress for Email
@API2PDF optimize this 12MB PDF to under 5MB. Keep images readable but reduce file size for email.Open in a Space →
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@API2PDF merge the three contract PDFs I uploaded last week into a single document for the client review meeting.
I've merged your three contract PDFs into a single document. The combined file is 47 pages and available at the temporary URL provided by API2PDF (valid for 24 hours). The merge preserved the original page order: NDA (12 pages), Service Agreement (28 pages), and Payment Terms (7 pages). You can download it now or I can help you add headers and footers before finalizing.
This example shows the merge capability, which is server-side and requires the PDFs to already exist in API2PDF's system (uploaded via URL or previous generation). The output URL expires after 24 hours by default, so plan to download or re-host the file promptly.
@API2PDF add page numbers and our company logo as a footer to the Q4 report PDF, centered at the bottom of each page.
I've added page numbers and your logo footer to the Q4 report. The updated PDF now shows 'Page X of 34' centered at the bottom of each page, with your logo positioned to the left. The file size increased slightly from 2.1 MB to 2.3 MB due to the embedded logo image. The modified PDF is ready for download at the provided URL.
The Add Header Footer tool requires an existing PDF hosted at a URL (not a local file path). You'll need to specify exact positioning, font size, and image URLs for logos. This is a write operation that generates a new PDF rather than modifying the original in place.
@API2PDF generate a QR code for our event registration link and optimize the 120-page conference guide PDF to reduce the file size for email distribution.
I've completed both tasks. First, I generated a QR code (PNG, 300x300px) encoding your event registration URL—it's ready to embed in print materials. Second, I optimized the conference guide PDF from 18.7 MB down to 4.2 MB (77% reduction) by compressing images and removing redundant metadata. The optimized version maintains readability for on-screen viewing and should attach easily to email without hitting size limits.
This example demonstrates two independent tools working together in one workflow. The QR code generator supports multiple barcode formats via ZXing. The PDF optimizer is lossy—test the output quality before distributing, especially if the original contained high-resolution photos or precise diagrams that need fidelity.
Use-case deep-dives
When API2PDF wins for multi-doc contract workflows
A 6-person legal ops team assembles client contracts from templated sections stored as separate PDFs. They merge the base agreement, addenda, and signature pages, then add page numbers and firm branding via headers and footers. API2PDF handles this in two calls: merge the source files, then stamp the header-footer layer. The optimize tool shrinks the final file before email delivery. This MCP is the right call if your team sends 20-plus contracts a week and the documents live server-side (S3, Google Drive via another MCP). If you're stitching together fewer than 10 PDFs a month, a manual Acrobat step is faster than wiring the auth and error handling. Use API2PDF when contract velocity justifies the setup cost.
When barcode generation replaces manual copy-paste
A 3-person finance team at a SaaS company sends 200 invoices monthly, each needing a unique payment QR code for bank transfers. They used to paste codes from a separate generator into a PDF template. Now they call API2PDF's barcode tool in a loop, passing invoice IDs as text values, and merge the resulting images into the invoice PDFs. The entire batch runs in under 5 minutes. This MCP is worth it if you generate more than 50 codes a week and the downstream step is PDF assembly. If you only need a handful of codes or they're going into a web page (not a PDF), a lighter QR library in your app is simpler. API2PDF shines when the barcode is one step in a larger document pipeline.
When thumbnail generation speeds triage for support teams
A 10-person customer support team triages 400 tickets daily, many with PDF attachments (invoices, screenshots, contracts). Agents waste 15 seconds per ticket opening files to see if they're relevant. The team wires API2PDF's LibreOffice thumbnail tool to generate a preview image the moment a PDF hits the ticket system. Agents now scan thumbnails in the ticket list and only open the full file when needed. This MCP is the right call if your support volume is over 100 tickets a day and attachments are mixed-format (PDF, DOCX, PPTX). If you only handle PDFs and your ticket system already renders previews, you don't need this. Use API2PDF when the time saved on triage justifies the per-thumbnail API cost.
Frequently asked
What does the API2PDF MCP do in Switchy?
It lets your AI agents generate, merge, optimize, and manipulate PDFs without writing code. Agents can convert documents to PDF, extract specific pages, add headers and footers, create QR codes, or compress files — all through natural language. Useful when your team needs automated document workflows inside Switchy conversations.
Do I need an API2PDF account to use this MCP?
Yes. You'll need an API2PDF API key, which you get by signing up at api2pdf.com. Paste that key into Switchy's connection settings. API2PDF charges per conversion or operation, so check their pricing before running high-volume jobs through the MCP.
Can this MCP convert Word or Excel files to PDF?
Not directly through the nine tools listed here. The MCP focuses on PDF manipulation — merging, extracting pages, adding headers, optimizing size. If you need Office-to-PDF conversion, you'd handle that upstream or use API2PDF's other endpoints outside the MCP.
Why use this MCP instead of calling API2PDF's REST API directly?
The MCP wraps API2PDF's endpoints so your AI agents can invoke them conversationally. Instead of writing curl commands or SDK code, you ask the agent to merge three PDFs or generate a QR code. It's faster for ad-hoc document tasks inside Switchy.
Who on my team should connect the API2PDF MCP?
Whoever owns your API2PDF account and can safely share the API key. That person should paste the key into Switchy once; then any workspace member can use the MCP. Just remember: every operation hits your API2PDF usage quota.