Retrieving InkNode from OneNote using Graph

lemur 21 Reputation points
2021-12-16T21:19:59.077+00:00

Hi,
I'd like to extract InkNodes or page contents from OneNote. So far I've been able to successfully make a request to https://graph.microsoft.com/beta/me/onenote/pages/{id}/content. However, most of the notes I'd like to retrieve are written with a Pen, so they're not standard text format.

I'd like to do one of the following:

  1. Retrieve and parse the InkNode data from Graph
  2. If possible, request ink-written note as .pdf-exported page or a .jpg or simply parsed to text.

Is any of the above possible? If not, are there any plans/roadmap to have such a feature in the future?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,707 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 37,296 Reputation points
    2021-12-17T08:27:33.97+00:00

    Hi @lemur

    1. Retrieve and parse the InkNode data from Graph

    If you want to retrieve the InkNode content of the OneNote page, can try use includeinkML=true.
    /pages/[pageid]/content?includeinkML=true

    1. If possible, request ink-written note as .pdf-exported page or a .jpg or simply parsed to text.

    Does not support the use of graph api to export OneNote content to pdf or jpg pages, it can only be exported as HTML. Currently seems that there are no plans/roadmap under implementation. So I suggest you submit a user voice to propose support for this feature, and I will vote for you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful