Forum


Replies: 3   Views: 345
How to replace the text in word bookmarks?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rujd  · 22-06-2023 - 07:19

I have prepared a table with key-value pairs: "Name: Mike, Gender: Male..." I want to click a button on the web page to change the text of the bookmark named "Name" to "Mike" and the text of the bookmark "Gender" to "Male."

Posted by admin  · 22-06-2023 - 07:31

Hello,

What version and license of phpdocx are you using? If your template is not using template placeholders, for that specific task you many need to use DOCXPath features available in Advanced and Premium licenses.

Your username doesn't have any license tied. Please send to contact[at]phpdocx the username or email of the user that purchased the license you are using.

Regards.

Posted by admin  · 22-06-2023 - 11:25

Hello,

You can read the features available in the trial package and purchase licenses on https://www.phpdocx.com/features .  There's no free package, but a trial package that can be used to test basic features of phpdocx.

The addBookmark method allows adding bookmarks, but not change them.

After purchasing a license we can provide further support, for example to generate a sample script to illustrate how to accompish the requested task.

Regards.