PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.23k stars 2.69k forks source link

Find and replace specific text? #872

Open grluka opened 8 years ago

grluka commented 8 years ago

Can you explain, how to find some specific text and then replace it with other with PHPWord?

Thank you!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/37302027-find-and-replace-specific-text?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F323108&utm_medium=issues&utm_source=github).
digikv commented 8 years ago

My suggestion for you. Open rtf document change text with basic IO and save to doc, but My question is how open RTF and save as DOC?

NingerJohn commented 7 years ago

I am facing the same requirement. Anything better solution comes out now?

rdai commented 4 years ago

I think this is what you are looking for: http://www.onlinecode.org/update-docx-file-using-php/