We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to remove/hide word page based on condition

I am using aspose with salesforce.I am generating word file using aspose . I have one requirement, My template is having 5 pages. My client wants that based on some condition only add 5th page else generated file should contains only 4 pages.
So can anybody help me how can i add or remove the word page based on merge field data in word ??


I am afraid, there is no concept of Page in MS Word document. Pages are created on the fly when you open a Word document with MS Word. However, please ZIP and attach your input Word document and a simple console application (source code without compilation errors) to generate output on our end. We may then be able to suggest you a way to remove fifth Page from generated output.