How to read/retrieve section break in Word using office.js

How to read/retrieve section break in Word using office.js
2

Upvotes

Upvote

 Sep 21 2023
0 Comments 
New

Hello Team,

I have a requirement to analyze(read/insert/update/delete) section breaks in a Word document, specifically to determine whether they are "Next Page" or "Continuous." Based on this information, I need to break the document into sections accordingly.

Is there an existing method or feature available in Office.js or any plans to introduce such functionality for reading and working with section breaks programmatically in Word documents?

 

Also is there any way to make sections read-only or can we perform Masking/UnMasking where we can do masking on selected sections.

For Ex:

if certain sections are assigned to particular user than other users should not perform any actions on those sections. Either it would be in read-only state or would be masked(some encrypted form/Hide).

 

Note : I don't want to use oneDrive due to some company policy.

My Environment
Platform : PC desktop
Host: Word
Office version number: Microsoft® Word for Microsoft 365 MSO (Version 2307 Build 16.0.16731.20052) 64-bit
Operating System: Windows 10 pro