If you want to refresh the table of contents you must add a macro that do this when the document is oponened.
Sorry but with the current version of phpdocx It's not possible to remove more than one chapter in the same removeChapter.
Regards.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now