[ 
https://issues.apache.org/jira/browse/TIKA-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18096164#comment-18096164
 ] 

Tilman Hausherr edited comment on TIKA-4782 at 7/14/26 11:58 AM:
-----------------------------------------------------------------

What we could do is change the 512 in tika-mimetypes.xml to 1024 (at lines 852 
and 855 in the trunk).


was (Author: tilman):
What we could do is change the 512 in tika-mimetypes.xml to 1024.

> PDF detected as matlab file
> ---------------------------
>
>                 Key: TIKA-4782
>                 URL: https://issues.apache.org/jira/browse/TIKA-4782
>             Project: Tika
>          Issue Type: Bug
>    Affects Versions: 3.2.3
>            Reporter: Damien Bories
>            Priority: Major
>         Attachments: tika-sees-pdf-as-matlab.pdf
>
>
> Hello,
> In a few cases within my organisation, we encounter PDF files that get 
> detected as matlab files. I attached an example of PDF file that gets 
> detected wrongly as matlab.
> Tested with Tika 3.2.3
> A similar issue was raised a few years ago : TIKA-3328
> I checked the corresponding fix [TIKA-3328 -- make PDF detection a bit more 
> flexible · apache/tika@3381c73 · 
> GitHub|https://github.com/apache/tika/commit/3381c7328875073300fb6fc6b0be850562977d60]
>  and if I had to take a guess, I'd say that in my case, the "metadata block" 
> starting with %% is longer than the 512 offset.



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

Reply via email to