Forum


Replies: 2   Views: 3431
Watermark in v4.5
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 seb  · 16-02-2015 - 11:09

Hello, When I add a watermark to my document (version corporate 4.5), I get a fatal PHP error: PHP Fatal error: Call to a member function appendChild() on a non-object But at the same time, the document is created successfully with the watermark on the server. But the error stops my scripts from working and downloading the docx file. Can you please suggest how I can stop this error? Thanks, Seb

Posted by seb  · 16-02-2015 - 11:38

Ok its if you define headers and footers with a watermark. If your document has headers and footers, then adding a watermark will work, but cause a fatal PHP error. Is this due to be fixed at some point?

Posted by admin  · 16-02-2015 - 11:53

Hello, Word adds watermarks in the headers. Please removing the existing watermarks by using the parameter 'remove_previous_watermarks' when adding the new image. If it doesn't work please send to contact@phpdocx.com the template and a sample script that just add the watermark image. Regards.