PDF.co integration
PDF.co document processing API: extract text, tables and form fields from PDFs, convert PDFs to images or office formats, build PDFs from HTML or from a live URL, merge, split and compress documents, fill form fields, generate and read barcodes, and parse structured data out of invoices with a document parser template. Nearly every call answers with a temporary URL to the produced file rather than with its bytes, and long running work can be pushed to a background job. Requests authenticate with an API key sent in a header.
Say what should happen.
The workflow builds itself.
Common PDF.co use cases
- shrinking a scan before emailing it
- binding a cover to a generated report
- checking the balance before a bulk run
- producing a preview image of a document
- archiving a published page as a document
- waiting for a long compression to finish
- extracting a signed page out of a contract
- putting a tracking code on a shipping label
- filling an application form from record data
- turning a generated report into a paginated PDF
What you can do with PDF.co
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Pdf, 10 operations
add_to_pdfAdd to pdfPOSTFills PDF form fields and stamps text or images onto a document.compress_pdfCompress pdfPOSTCompresses a PDF and returns a temporary URL to the smaller document.get_pdf_infoGet pdf infoPOSTReads the metadata, page count and permissions of a PDF.merge_pdfMerge pdfPOSTMerges several PDFs reachable by URL into a single document.pdf_from_htmlPdf from htmlPOSTTurns HTML markup into a PDF and returns its temporary URL.pdf_from_urlPdf from urlPOSTRenders a public web page into a PDF and returns its temporary URL.pdf_to_pngPdf to pngPOSTRenders each page of a PDF as a PNG image and returns their URLs.pdf_to_textPdf to textPOSTExtracts the text content of a PDF, running OCR on scanned pages.read_form_fieldsRead form fieldsPOSTLists the fillable fields of a PDF form with their exact names.split_pdfSplit pdfPOSTSplits a PDF into several documents and returns one URL per piece.
Barcode, 2 operations
generate_barcodeGenerate barcodePOSTGenerates a barcode or QR code image and returns its temporary URL.read_barcodeRead barcodePOSTReads the barcodes and QR codes found in a PDF or an image.
Account, 1 operation
get_credit_balanceGet credit balanceGETReads how many PDF.co credits are still available.
Document, 1 operation
parse_documentParse documentPOSTExtracts named fields and tables out of an invoice or a form using a parser template.
File, 1 operation
upload_fileUpload filePOSTUploads a file to PDF.co and returns the URL every other call expects.
Job, 1 operation
check_jobCheck jobPOSTChecks whether a background PDF.co job has finished and reads its output URL.
Use PDF.co from Claude Code, Cursor or Codex
Connect PDF.co in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its PDF.co operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect PDF.co
- Create your workspace
Sign up free. Nothing to install.
- Connect PDF.co once
Add your PDF.co connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
PDF.co integration FAQ
What can you do with the PDF.co integration?
LiveContext exposes 16 operations on PDF.co, covering pdf, barcode, account and document. Common uses include shrinking a scan before emailing it, binding a cover to a generated report and checking the balance before a bulk run.
