How to search text in pdf file using php

Search PDF files for text in PHP

More languages

JavaScript

Java [Android]

C++

C#

C# [.NET Core]

Go

Java

Kotlin

Obj-C

JS [Node.js]

PHP

Python

Ruby

Swift

C# [UWP]

VB

C# [Xamarin]

Sample PHP code for using PDFTron SDK to search text on PDF pages using regular expressions. The TextSearch utility class builds on functionality available in TextExtractor to simplify most common search operations. Learn more about our PHP PDF Library and PDF Indexed Search Library.

Get Started Samples Download

To run this sample, get started with a free trial of PDFTron SDK.

Chủ Đề