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

%3CLINGO-SUB%20id%3D%22lingo-sub-1045608%22%20slang%3D%22en-US%22%3EParsing%20OneNote%20documents%20-%20having%20trouble%20getting%20to%20the%20text%20within%20the%20doc.%20Need%20help%20with%20specs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1045608%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20creating%20a%20parser%20for%20the%20.one%20file%20extension%2C%20which%20when%20finished%20I%20will%20add%20to%20the%20Apache%20Tika%20project.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20APL%202.0%20licensed%20Open%20Source%20project%20I'm%20creating%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnddipiazza%2Fonenote-parser-java%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnddipiazza%2Fonenote-parser-java%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20used%20the%20specification%20document%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fopenspecs%2Foffice_file_formats%2Fms-one%2F73d22548-a613-4350-8c23-07d15576be50%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fopenspecs%2Foffice_file_formats%2Fms-one%2F73d22548-a613-4350-8c23-07d15576be50%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20a%20starting%20point%2C%20I%20ported%20over%20the%20code%20from%20this%20open%20source%20C%2B%2B%20project%3A%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fdropbox%2Fonenote-parser%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fdropbox%2Fonenote-parser%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20gotten%20a%20long%20way%20in%20the%20parsing%20of%20the%20documents%2C%20but%20I've%20hit%20a%20road%20block.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20OneNote%20file%20I'm%20using%20to%20parse%3A%20%3CA%20href%3D%22https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1uROTEnKeBKU08CG_K5zdDTGHa178LgBK%2Fview%3Fusp%3Dsharing%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1uROTEnKeBKU08CG_K5zdDTGHa178LgBK%2Fview%3Fusp%3Dsharing%3C%2FA%3E%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EI%20am%20unable%20to%20view%20the%20Section1TextArea1%20and%20Section1TextArea2%20in%20my%20parsed%20results.%20So%20I'm%20missing%20some%20sort%20of%20key%20data%20parsing%20element%20or%20something.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20597px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F159916i6A3BE7B22599FDB5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22hoHHe%22%20title%3D%22hoHHe%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20definitely%20in%20the%20OneNote%20file%20itself.%20I%20can%20see%20it%20in%20the%20Hex%20viewer%3A%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F159915i988EF43EBDA8CD02%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22jpQGM%22%20title%3D%22jpQGM%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHere%20is%20the%20JSON%20parse%20output%3A%20%3CA%20href%3D%22https%3A%2F%2Fgist.github.com%2Fnddipiazza%2F02d2252d357b3b02a6b9ab1050474267%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgist.github.com%2Fnddipiazza%2F02d2252d357b3b02a6b9ab1050474267%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20clearly%20just%20failing%20to%20understand%20a%20key%20part%20of%20the%20MS-ONE%20and%20MS-ONESTORE%20specs%20that%20are%20resulting%20in%20me%20missing%20in%20some%20key%20data.%20I%20feel%20like%20I'm%20properly%20reading%20these%20elements.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20there%20any%20community%20members%20out%20there%20that%20know%20the%20specs%20well%20enough%20to%20help%20me%20figure%20out%20what%20I'm%20missing%20that%20is%20causing%20me%20to%20miss%20the%20critical%20chunks%20of%20data%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1045608%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneNote%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneNote%20Education%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eparsing%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1047362%22%20slang%3D%22en-US%22%3ERe%3A%20Parsing%20OneNote%20documents%20-%20having%20trouble%20getting%20to%20the%20text%20within%20the%20doc.%20Need%20help%20with%20sp%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1047362%22%20slang%3D%22en-US%22%3E%3CP%3EI%20figured%20it%20out%20by%20myself.%20It%20was%20just%20a%20matter%20of%20missing%20some%20properties%20that%20had%20the%20key%20text%20in%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional 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
Highlighted

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