make PDF detection a bit more flexible
<!-- Sometimes has a UTF-8 Byte Order Mark first -->
<match value="\xef\xbb\xbf%PDF-" type="string" offset="0"/>
</magic>
+ <magic priority="40">
+ <!-- Higher priority than matlab's priority=20 %% match
+ Low priority match for %PDF-#.# near the start of the file -->
+ <!-- Can trigger false positives, so set the priority rather low here -->
+ <match value="%%" type="string" offset="0:128">
+ <match value="%PDF-1." type="string" offset="1:512"/>
+ </match>
+ <match value="%%" type="string" offset="0:128">
+ <match value="%PDF-2." type="string" offset="1:512"/>
+ </match>
+ </magic>
<magic priority="20">
<!-- Low priority match for %PDF-#.# near the start of the file -->
<!-- Can trigger false positives, so set the priority rather low here -->
