Extract Text from PDF Online

Extract the text layer of a PDF page by page (Vietnamese Unicode kept), with document metadata, word counts and a warning for scanned files.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

The PDF text API reads the text layer of a PDF with the PDF.js engine and returns it page by page (pages: [{ page, text }]) or as one string with merge=true. Vietnamese text produced by Word, LibreOffice, invoicing software or our own PDF APIs is returned as proper Unicode. pages=2-4 restricts the output to some pages.

The answer also contains the document information (title, author, creator, producer), the total page count and character and word counts. When pages have no text at all, a note warns that the file looks scanned: such PDFs are images and need OCR, which this API does not do.

Up to 500 pages are read per call by default (max_pages, at most 2,000), within the file size of your plan. Password-protected PDFs are refused. Layout (columns, tables) is flattened to lines of text.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/pdf-text" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "0=@./my-file"

API documentation → Get a free API key

FAQ

Does it work on scanned documents?

No. A scanned PDF only contains images; the API detects it and says so in note. OCR is needed for those files.

Is the table layout kept?

No, the text comes line by line in reading order. Tables become lines with their cell values.

What is the page limit?

500 pages by default, up to 2,000 with max_pages, and the file size of your plan.