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

Free Support Forum - aspose.com

Portrait and Landscape in the Same Document when Accepting Revisions

I have a Word document (see attached) that has two pages–one in Portrait layout and one in Landscape layout. When I load the document into a Document object and call AcceptAllRevisions() on the object and save the file to disk, the first page, which was in Portrait layout, has been changed to Landscape layout like the second.

Hi David,


Thanks for your inquiry. The problem occurs because your input document (Portrait+and+Landscape+Test.docx) has ‘Deletion’ revisions. Initially, there are two sections in your input document, when you ‘accept all changes’ using Aspose.Words or Microsoft Word, these two sections get merged into a single section (section break gets removed). In this case Aspose.Words mimics the behaviour of Microsoft Word. If we can help you with anything else, please feel free to ask.

Best regards,