This free consulting project helps you process Word document using Aspose.Words with page splitter utility and helps remove extra section breaks. This project helps you to split Word document's pages into separate documents. It splits a document into multiple sections so that each page begins and ends at a section boundary.
- You can either clone the repository using your favorite GitHub client or download the ZIP file
- Extract the contents of the ZIP file to any folder on your computer
- The project is created in Visual Studio 2017
- Open the solution file in Visual Studio and build the project
- On the first run, the dependencies will automatically be downloaded via NuGet
- Get the temporary license and put it in Debug folder
- Run the project, and give full path input document, start and end page numbers
This project inserts the section break at the end of each page. So, in some cases section break pushes the last line of page to next page.
- This utility threw an exception when customer’s document is processed through it. This issue has been fixed.
- Added code to remove extra empty pages/sections from the document. See the following screenshots.
This is the problematic input word document containing extra section breaks
This is the fixed output word document without extra section breaks
If you have any questions about Aspose APIs, please feel free to post your query in Aspose file format APIs Forums.
Also, you can keep in touch with the latest developments in file format APIs offered by Aspose at our Blog.
I want to create a page splitter component without extra section breaks added: github.com/aspose-free-consulting/projects/issues/15