Extract document content separated by page number

How can Extract document content separated by page number

Hi

Thanks for your inquiry. What do you mean, “separated by page number”? Do you need to extract content of the particular pages from your document?

MS Word document is flow documents and do not contain any information about its layout into lines and pages. So, there is no public API, which allows to determine where page starts or ends.

Could you please describe your requirements more specifically. Also, please attach sample documents if it is necessary.

Best regards.

Hi Noskov
ya i need to separate document by page number
but please can you explain how can use this method to convert any word page to image foramt

doc.SaveToImage !!
it depend the page count that is mean you know the exactly count of page
and you get it from this method doc.PageCount

i need only like this method
.SaveToImage
but to save on MS word document if you can do that

thanks alot
omar

Hi

Thanks for your explanation. In Aspose.Words we use our own Rendering Engine, which layouts Word document into pages. This allows us to convert flow documents (Word documents) to fixed documents like PDF, XPS and images.

Internally it is possible to determine where page starts or ends, but there is no public API to achieve this. Please see the following blog to learn more:

Best regards.

The requested functionality is now available in Aspose.Words through Document.ExtractPages method.