Tools API Blog
Sign in Create account

Extract text from a PDF

Extract text is an API that pulls all the text out of a PDF, ready to search, analyze or store in a spreadsheet. Great for processing invoices, contracts or reports from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF and get back its text in a JSON object, along with the page count and the document's metadata (title, author…). Nothing is stored: it's processed on the fly.

A note on scanned PDFs: if the PDF is a photo or scan with no text layer (you can't select the text when you open it on your computer), this tool returns empty text: it's not an error, there's simply no text to extract. That case needs OCR, which this tool doesn't do.

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

You send your PDF as is (as binary data) and get the text back in JSON. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-extract-text
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)

The response is already a JSON with the text in text: use it directly in the next step (search for a word, save it to a spreadsheet, send it to an AI model…).

In Make (HTTP → Make a request module): same method and URL, the two headers in Headers, and the PDF as binary data in the body.

Options (as Query Parameters or in the JSON)

OptionDefaultWhat it does
pagesfalseSet to true to also get the text split by page.

What you get back

A JSON object with the PDF's full text, its page count and its metadata (title, author…).