How to extract OneNote file as HTML?

Hello!
I have .one and .onetoc2 files locally. I would like to create or update it via this API Create OneNote pages by using the OneNote API - Microsoft Graph | Microsoft Learn

How can I convert .one, .onetoc2 files to HTML via aspose-note library (for Java)?

@aaukhatov,

See the document with example codes on how to convert onenote documents to HTML for your reference.