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
  • 316
  • 3
  • 11

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
  • 158,981
  • 26
  • 290
  • 279
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,659
  • 1
  • 14
  • 26