Extracting page metadata when converting DOCX to HTML (javascript)

I’m working on a Vue page where I need to convert DOCX files to HTML while preserving page metadata (e.g., page numbers, section breaks).

I’ve explored libraries like Mammoth.js, but it seems they don’t handle page metadata extraction. Other libraries I found primarily focus on DOCX to HTML conversion without retaining pagination information. The issue is still open here.

vue-document-editor offers functionalities for creating page breaks using arrays, but this doesn’t support docx conversion to html.

Is there a way to achieve DOCX to HTML conversion with page metadata extraction (preferably in JS/Vue application)?