The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
SBSuriya Balamurugan Syncfusion Team December 9, 2019 06:07 AM
Hi AtliDev,
Thank you for contacting Syncfusion support.
The Word document is a flow document in which contents will not be preserved page by page; instead the contents will be preserved sequentially section by section. Each section may extend to various pages based on its contents like table, text, images etc.
Word viewer/editor renders the contents of the Word document page by page dynamically when opened for viewing or editing and this page wise rendered information will not be preserved in the document level as per the Word file format specification.
Whereas Essential DocIO is a non-UI component that provides a full-fledged document object model to manipulate the Word document contents. Hence currently it is not feasible to detect the bookmark or paragraph is in first page of Word document using DocIO.
Note: Please find the template Word document in “Data” folder of above sample application.
In the above sample, we have done the following things: 1. Loads the template Word document. 2. Finds particular text in paragraph in which you want to get the index of paragraph. 3. Gets the index of the found text paragraph. 4. Similarly finds the particular bookmark 5. Gets the index of the bookmark paragraph. 6. Saves the Word document.
Please let us know if you have any other questions. >>>>>>>>>>>