Document doc = new
// Create and attach collector to the document before page layout is built.
LayoutCollector layoutCollector = new LayoutCollector(doc);
// This will build layout model and collect necessary information.
// Split nodes in the document into separate pages.
DocumentPageSplitter splitter = new DocumentPageSplitter(layoutCollector);
// Create a new document to add each page as a separate section.
Document document = splitter.GetDocumentOfPage(1);
for (int i = 2; i <= doc.PageCount; i++)
Aspose.Words.Document dstDoc = splitter.GetDocumentOfPage(i);
//Set margin settings of last section
PageSetup lastpageSetup = document.LastSection.PageSetup;
lastpageSetup.TopMargin = ConvertUtil.InchToPoint(3);
lastpageSetup.LeftMargin = ConvertUtil.InchToPoint(2);
Its been like 4 months already. Could you please provide an update on it, as our project is on halt because of this issue.
Thanks for your inquiry. I am afraid your reported issue is still not resolved. As our product team is busy in resolving other issues in the queue, reported earlier. However, we have recorded your concern and requested our product team to share an update. We will notify you as soon as we get a feedback.