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

Free Support Forum - aspose.com

1st page manipulation

Hi, in my asp.net mvc 3 app, I have a .docx file. I know how to change the font and save as image, but I want do that operations only on the 1st page of the document. How to do that using the Aspose.Words ?

Hi,


Thanks for your inquiry.

Please note that MS Word Document is a flow document i.e. it does not contain any information about its layout into pages. So there is no direct way to determine where page starts or ends using Aspose.Words and hence you can’t set the formatting for the first page of the document. May be you can wrap the first page content inside a bookmark; you can then extract content in between BookmarkStart and BookmarkEnd nodes and then format the extracted nodes accordingly. For more information, please read the following articles:
http://www.aspose.com/docs/display/wordsnet/Extract+Content+from+a+Bookmark
http://www.aspose.com/docs/display/wordsnet/Specifying+Formatting

I hope, this will help.

Best Regards,