Forum


Replies: 3   Views: 3613
Cannot add properties on a template document.
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 Griffith University  · 28-06-2013 - 08:57

When we try to adjust properties on a document we've created via template the properties don't take.




$docx = new CreateDocx();
$docx->addTemplate('template.docx');
....
$docx->addProperties($properties);
$docx->createDocx('blah.docx');


That results in a document with the same properties as the template, so the addProperties hasn't changed anything.


Posted by jorgelj  · 04-07-2013 - 12:18

Hello,



In the current version of PHPDocX it's not possible to change properties of a template, only in a new DOCX. This will be added on a next version of PHPDocX, but currently the template mas have that properties.



Regards.


Posted by ivense  · 08-09-2013 - 18:17

Hi I havethe same problem withtheAddPropertiesandsetMarkAsFinalfunction.Therearenowfive monthsago,there isalready a solution?