[ 
https://issues.apache.org/jira/browse/TIKA-4814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henry Lindeman updated TIKA-4814:
---------------------------------
    Description: 
I made a test onenote file and tried to parse it with the cli as described in 
the tika readme, and it only showed the last element on each page
{code:java}
❯ java -jar tika-app/target/tika-app-4.0.0-SNAPSHOT.jar --text 
../datasets/onenote/ToDownload/Downloadme.onepkg
INFO [main] 12:56:37,927 org.apache.tika.cli.TikaCLI As a convenience, TikaCLI 
has turned on several non-default features
as specified in 
tika-app/src/main/resources/tika-config-default-single-file.json.
See: TIKA-2374, TIKA-4017, TIKA-4354 and TIKA-4472).
This is not the default behavior in Tika generally or in tika-server.

Downloadme/Open Notebook.onetoc2

Downloadme/Untitled Section.one

Highlighted Text

Comic sans

Downloadme/Section 2.one 

{code}
onedrive sharing link: 
[Downloadme|https://1drv.ms/o/c/98705a8ca0add89e/IgBEW7OVk9slSKq8sJeJUTkbAQ6K3mNiiRNLGRNh5sniyq0?e=g3aSgg]

 

I also vibe-coded a fix for this. lmk if you want it. 
[https://github.com/henry-lindeman-glean/tika/pull/1] 

  was:
I made a test onenote file and tried to parse it with the cli as described in 
the tika readme, and it only showed the last element on each page

```
❯ java -jar tika-app/target/tika-app-4.0.0-SNAPSHOT.jar --text 
../datasets/onenote/ToDownload/Downloadme.onepkg
INFO [main] 12:56:37,927 org.apache.tika.cli.TikaCLI As a convenience, TikaCLI 
has turned on several non-default features
as specified in 
tika-app/src/main/resources/tika-config-default-single-file.json.
See: TIKA-2374, TIKA-4017, TIKA-4354 and TIKA-4472).
This is not the default behavior in Tika generally or in tika-server.

Downloadme/Open Notebook.onetoc2

Downloadme/Untitled Section.one
Highlighted Text

Comic sans

Downloadme/Section 2.one
```

onedrive sharing link: 
[Downloadme|https://1drv.ms/o/c/98705a8ca0add89e/IgBEW7OVk9slSKq8sJeJUTkbAQ6K3mNiiRNLGRNh5sniyq0?e=g3aSgg]

 

I also vibe-coded a fix for this. lmk if you want it. 
[https://github.com/henry-lindeman-glean/tika/pull/1] 


> Onenote parsing only takes last item on each page
> -------------------------------------------------
>
>                 Key: TIKA-4814
>                 URL: https://issues.apache.org/jira/browse/TIKA-4814
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 3.3.2
>         Environment: ❯ java --versionopenjdk 26.0.2 2026-07-21 OpenJDK 
> Runtime Environment Homebrew (build 26.0.2) OpenJDK 64-Bit Server VM Homebrew 
> (build 26.0.2, mixed mode, sharing)
> ❯ uname -aDarwin Henrys-MBP.localdomain 25.6.0 Darwin Kernel Version 25.6.0: 
> Sat Jul 11 15:25:34 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6020 
> arm64
>            Reporter: Henry Lindeman
>            Priority: Major
>         Attachments: Downloadme.onepkg
>
>
> I made a test onenote file and tried to parse it with the cli as described in 
> the tika readme, and it only showed the last element on each page
> {code:java}
> ❯ java -jar tika-app/target/tika-app-4.0.0-SNAPSHOT.jar --text 
> ../datasets/onenote/ToDownload/Downloadme.onepkg
> INFO [main] 12:56:37,927 org.apache.tika.cli.TikaCLI As a convenience, 
> TikaCLI has turned on several non-default features
> as specified in 
> tika-app/src/main/resources/tika-config-default-single-file.json.
> See: TIKA-2374, TIKA-4017, TIKA-4354 and TIKA-4472).
> This is not the default behavior in Tika generally or in tika-server.
> Downloadme/Open Notebook.onetoc2
> Downloadme/Untitled Section.one
> Highlighted Text
> Comic sans
> Downloadme/Section 2.one 
> {code}
> onedrive sharing link: 
> [Downloadme|https://1drv.ms/o/c/98705a8ca0add89e/IgBEW7OVk9slSKq8sJeJUTkbAQ6K3mNiiRNLGRNh5sniyq0?e=g3aSgg]
>  
> I also vibe-coded a fix for this. lmk if you want it. 
> [https://github.com/henry-lindeman-glean/tika/pull/1] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to