[
https://issues.apache.org/jira/browse/TIKA-4782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095926#comment-18095926
]
Damien Bories commented on TIKA-4782:
-------------------------------------
Just to clarify : for privacy reason, I did not attach the actual problematic
file from production. Instead I created a simple PDF using Microsoft Word and
edited it in a text editor to add the same comments/metadata at the start,
before the "%PDF-" tag.
I think the original file was generated to be used in a specific printing
setup, but it is still a valid PDF file and very much not a matlab file.
Do you think the Tika rules could be adapted to ignore all the starting "%%
comments" before the "%PDF-" tag?
> 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)