0

I am building an e-sign app with Laravel. It uploads a pdf file and read it to find a special string pattern like ##sign##. I do not know how to do this with PHP. It will be very helpful if anyone can help me in terms of Laravel.

Haseeb Zulfiqar
  • 306
  • 3
  • 10

2 Answers2

0

You could use one of the PDF libraries to read the data and use regex functions to find and replace content with PHP. Or even simple str_reaplce could do the trick:

str_replace ('##sign##', 'Replace ##sign## with this', $content);
Alexey Mezenin
  • 148,626
  • 22
  • 267
  • 261
0

See this which have answer for your question

[http://stackoverflow.com/questions/10882757/search-for-a-string-in-a-pdf-file-using-php][1]
sujivasagam
  • 1,569
  • 1
  • 13
  • 26