Forum


Replies: 1   Views: 1163
How to remove lines created in word?
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 tjchen  · 22-12-2020 - 04:37

Lines generated with "addShape" can be removed by "removeWordContent", but lines generated in Word (simply cut and paste the line generated with addShape) can not be removed.

Please see the sample docx.

https://drive.google.com/file/d/1yaU6SEbsIDsdBxQam-pIXTfXz3ya8nN3/view?usp=sharing

Red line is generated with "addShape", and blue line is copied from red line in Word.

Strangely, Google drive can not recognize red line.

Is it possible to remove blue line programmatically, like

$docx->removeWordContent(['type' => 'shape']);

Thanks.