type.inbound
and any(filter(attachments, .file_type == "pdf"),
any(file.explode(.),
any(.scan.strings.strings,
strings.contains(., "/Rect [ 249.75 560 407.25 599.75 ]")
)
)
)
Playground
Test against your own EMLs or sample data.