Detect-It-Easy/db/PDF/Tools.2.sg
2025-04-16 19:06:51 +02:00

17 lines
433 B
JavaScript

// Detect It Easy: detection rule file
init("format", "pdf");
function detect() {
var list_creator = PDF.getValuesByKey("/Creator");
for (var i = 0; i < list_creator.length; i++) {
_setResult("tool", "Creator", "", list_creator[i]);
}
var list_producer = PDF.getValuesByKey("/Producer");
for (var i = 0; i < list_producer.length; i++) {
_setResult("tool", "Producer", "", list_producer[i]);
}
}