[
https://issues.apache.org/jira/browse/TIKA-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095603#comment-18095603
]
Tilman Hausherr commented on TIKA-4782:
---------------------------------------
That "PDF" starts as something else (I assume matlab). A PDF could be embedded
into any other file type, it's the beginning that counts.
> 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)