Forum


Replies: 5   Views: 3414
Updating custom document properties
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 fcds-cfrancisco  · 23-12-2016 - 15:53

Is there any way for me to try it actually works before buying the premium license?

Given this thread from 2014: http://www.phpdocx.com/en/forum/default/topic/823  it says the trial version doesn't include this feature.

I tried both: creating a new file, and creating from template, none of them added/modified a document properety (but the watermark and trial version parragraph were added).

I want to make sure this actually works before letting my boss know it works so we can buy this library license.

 

PS: I copy/pasted this example: http://www.phpdocx.com/api-documentation/layout-and-general/modify-Word-document-properties-with-PHP

Posted by admin  · 23-12-2016 - 16:45

Hello,

The trial package overwrites all properties of the DOCX. We guarantee you that using any purchase license (Basic, Advacend and Premium) it will work perfectly.

Regards.

Posted by fcds-cfrancisco  · 03-01-2017 - 12:28

Hey, thanks for the response.

Does the library also support writing the doc property in the page? For example, if my document's content contains the author as following:

"Hello [AUTHOR], this is a test document."

If I change the AUTHOR property with your library, will it write it correctly?

Posted by atebsy  · 13-01-2017 - 07:26

Hello admin, 

i would like to know if the method public addProperties ( array $properties ) will change the current custom properties that are already set by the same method , if not which method will I use?

Thanks

Posted by admin  · 13-01-2017 - 08:43

Hello,

Yes, the latest version of the library allows to update the values of custom properties. But you can't use the trial package to change the properties of the DOCX as they are overwriten; you need to use one of the purchased licenses.

Regards.