Hi
is there a way to detect and remove form fields / elements in a word document
Ideally I would like to detect the form field and then replace it with the 'value' if filled or with a 'placeholder' if it does not have a value.
Thanks
Hi
is there a way to detect and remove form fields / elements in a word document
Ideally I would like to detect the form field and then replace it with the 'value' if filled or with a 'placeholder' if it does not have a value.
Thanks
Hello,
Since the release of phpdocx 14.5 (https://www.phpdocx.com/news/post/phpdocx-v14-5-release-notes/232), Indexer (https://www.phpdocx.com/api-documentation/docxutilities/indexer-parse-word-documents-with-PHP) can extract input fields.
getDocxPathQueryInfo can also be used to get elements from a DOCX. On https://www.phpdocx.com/en/forum/default/topic/2282 you can read a post with the same question and how to accomplish this same task.
To remove elements from a DOCX, you can use removeWordContent available in DOCXPath.
Regards.