Extract text from a PDF file

Welcome to the extract text from a PDF guide. This guide will teach you how to extract text, font names and coordinates from a PDF file.

Remember that all Tool Guides takes into account that you have previous knowledge about the Basics to process a PDF with our REST API. We strongly recommend you to read the related guide before start with this one.

Extract text only

Extract all found text in a PDF to a txt file. We do not perform OCR.

Download the PHP library from GitHub

Extract text, font names and its coordinates from a PDF

Setting the parameter detailed equal to true you will get a csv comma separated file with this information:
PageNo, XPos, YPos, Width, FontName, FontSize, Length, Text

Download the PHP library from GitHub