Parsing OneNote documents - having trouble getting to the text within the doc. Need help with specs

Copper Contributor

I am creating a parser for the .one file extension, which when finished I will add to the Apache Tika project.

 

Here is the APL 2.0 licensed Open Source project I'm creating: https://github.com/nddipiazza/onenote-parser-java

 

I used the specification document here: https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-one/73d22548-a613-4350-8c23-07d155...

 

As a starting point, I ported over the code from this open source C++ project: https://github.com/dropbox/onenote-parser

 

I have gotten a long way in the parsing of the documents, but I've hit a road block.

 

Here is the OneNote file I'm using to parse: https://drive.google.com/file/d/1uROTEnKeBKU08CG_K5zdDTGHa178LgBK/view?usp=sharing

 

I am unable to view the Section1TextArea1 and Section1TextArea2 in my parsed results. So I'm missing some sort of key data parsing element or something.

 

hoHHe

 

It is definitely in the OneNote file itself. I can see it in the Hex viewer:

 

jpQGM

Here is the JSON parse output: https://gist.github.com/nddipiazza/02d2252d357b3b02a6b9ab1050474267

 

I am clearly just failing to understand a key part of the MS-ONE and MS-ONESTORE specs that are resulting in me missing in some key data. I feel like I'm properly reading these elements.

 

Are there any community members out there that know the specs well enough to help me figure out what I'm missing that is causing me to miss the critical chunks of data?

1 Reply

I figured it out by myself. It was just a matter of missing some properties that had the key text in it.