Please give a brief summary of your issue:
We are using Word Templates to generate content based on token replacement. We have several large sections on a template that are conditionally printed based on if a value is true or false. The word template generates the correct content however there are blank pages generated where the conditional content is in the template. Is there a way to make sure the generated document also trims the extra blank pages ?
the issue was the template had hidden section areas that was creating a blank page when within an if statement. The section was still generating. when I removed the section, the template generated correctly