Free Support Forum - aspose.com

Delete Page/Document

I have a predefine template which contains bookmarks on each page.Under each bookmark I need to insert document. Which is achieved, But, If a particular document is not exist then I want to delete that page.How I can do this using appose word.

I have a predefine template which contains bookmarks on each page.Under each bookmark I need to insert document. Which is achieved, But, If a particular document is not exist then I want to delete that page.How I can do this using appose word.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. MS Word document is flow document and does not contain any information about its layout into lines and pages. So there is no way to determine where page starts or ends.

However, if each page in your template is a separate section, then you can just remove the section, which bookmark is inserted. Could you please attach your template here to review?

Best regards.