You can use rule priorities to achieve that. Simply define a rule that match (application/pdf | text/plain), and
use a final action (block or accept). Any rule after that rule after this one satisfies ! (application/pdf | text/plain).
Does that help?