NEW Workflow v2 · the multi-agent verification layer is live
All apps

API2PDF

documents 10 tools available

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.

About this integration

Connect API2PDF to Definable to auto-index uploads, answer questions over a doc set, extract structured fields from contracts. Personas call API2PDF's 10 tools directly from chat or scheduled flows. Connect this integration to a knowledge persona — the agent will ground answers in your documents with citations.

Connect API2PDF to Definable and it becomes a set of typed tools your agents plan with — triggered by events, run on schedules, or invoked mid-conversation. Every write is checked by the verifier before it lands.

Auth OAuth2 · 2 clicks
Tools 10 exposed
Plans All, incl. Free
Data Never trained on

API2PDF · in workflows

What teams actually run.

Three patterns teams run with API2PDF on day one. Each one is a plain-English prompt — no canvas, no glue code — and you can remix them into anything.

01

Auto-index new files

Watch for new uploads
Chunk, embed, and index
Make queryable via your knowledge persona
02

Q&A against a folder

Pin a folder as a brain
Ask the persona questions
Returns answers with citations
03

Document-trigger flows

New contract uploaded
Persona extracts key terms
Routes to the right approver

10 tools available

The API2PDF toolbox.

Every API2PDF capability your agents can call, each with a typed schema the planner reads. The router picks the right tool per step; the verifier checks the result.

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.

See it run

One prompt, start to finish.

A real prompt, the API2PDF tools it calls, and what comes back. This is the whole interface — describe the outcome, agents handle the rest.

Run a real API2PDF task end-to-end — plan it, execute across the API, and hand back a verified result.

api2pdf.add_header_footer Convert HTML to PDF with customizable headers and footers using Headless Chrome. Use for g
api2pdf.check_api_status Tool to check the health status of the API2PDF service. Use when you need to verify if the
api2pdf.delete_pdf Delete a previously generated PDF from API2PDF storage by its response ID. By default, API · verified
done

Done. API2PDF responded across 3 calls, the verifier signed off, and the result is logged with every payload.

FAQ · API2PDF

Questions, answered.

What teams ask before connecting API2PDF.

01 What can I automate with API2PDF on Definable?

Anything API2PDF exposes through its API. Common documents workflows on Definable include auto-index uploads, answer questions over a doc set, extract structured fields from contracts. Personas can call any of the 10 API2PDF tools directly, then chain the result into another integration without you writing code.

02 How does API2PDF authentication work?

API2PDF uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.

03 Is the API2PDF integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 10 API2PDF tools. You only need a separate API2PDF subscription if API2PDF itself charges per seat or per API call.

04 Is using API2PDF through Definable secure?

Every call from a persona to API2PDF is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

05 How do I get started with API2PDF on Definable?

Sign up for Definable, open the integrations page, find API2PDF, and connect via OAuth or API key. You can immediately attach API2PDF to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

06 What API2PDF actions does Definable expose?

Definable exposes all 10 API2PDF actions as callable tools — including `Add Header Footer`, `Check API Status`, `Delete PDF`, plus 7 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Put API2PDF to work tonight.

Connect in two clicks, describe an outcome, and your first workflow is live in minutes. Free plan included — no card required.

← All apps