Forum


Replies: 2   Views: 2969
Pls help, i cant remove image with placeholder
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 admin@intuswindows.com  · 11-12-2016 - 10:46

Hi, i have image with placeholder $IMAGE3$

When i use $spPage->replacePlaceholderImage('IMAGE3', 'test.png');

It works fine, but when i dont need to replece it and i want to remove it and fails with

$spPage->removeTemplateVariable('IMAGE3');
$spPage->deleteTemplateBlock('IMAGE3');
$spPage->removeWordContent(array( 'contains' => 'IMAGE3'));

Pls help, what is wrong?

Posted by admin@intuswindows.com  · 12-12-2016 - 13:09

Thank you!