Replies: 5   Views: 489
El método clearblocks no limpia las variables no utilizadas
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  · 27-10-2022 - 11:12


El método clearBlocks no ha cambiado, y su funcionalidad es exactamente la descrita en la documentación:

Removes remaining BLOCK type variables from the Word document.

El método removeTemplateVariable elimina cualquier tipo de variable. Si no las sabes de antemano, puedes obtenerlas utilizando el método getTemplateVariables.