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

Free Support Forum - aspose.com

Moving content in the document using page splitter

Hi Team,

My requirement is to saving document as separate pages using page splitter then extract the images from the pages and also deleted the images after extraction.

The issue is after delete the image the remaining content in the next page is moved to previous page .
So that Iam gettting wrong page number for images.could you please help me to resolve it.(Aspose.words in java).

Thanks & regards,
priyanga G

@priyanga,

Thanks for your inquiry. Please call Document.UpdatePageLayout method to rebuild the page layout of the document after deleting the image. Hope this helps you.

If you still face problem, please attach the following resources here for testing:

  • Your input Word document.
  • Please share the problematic output.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

Hi Tahir ,

Thank you very much fro your timely reply.

In page splitting algorithm if the table is present in the document .once we split the pages the table is moved to previous or next page .Is this any work around solution for this.

Thanks & regards ,
priyanga G

@priyanga,

It is difficult to say what the problem is without document. We need your document to reproduce the problem. Please share your input Word document here for testing. Thanks for your cooperation.