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.
Asked
Active
Viewed 458 times
0
-
Maybe you should have a look at this: [Read pdf files with php](https://stackoverflow.com/questions/1004478/read-pdf-files-with-php) – flomei May 02 '16 at 08:46
-
Yeah, may be it will help. – Haseeb Zulfiqar May 02 '16 at 09:02
2 Answers
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