DEV Community

Discussion on: How I can replace text in it with a value from a PDF file using PHP?

Collapse
 
slimdestro profile image
D\sTro

It's simple thing. Use domPDF to parse the file. Store content in some variable and then apply str_replace()

Collapse
 
pcmagas profile image
Dimitrios Desyllas • Edited

Can you provide me an example? Also DOMPdf generates Pdf from html files.