So, for your above proposal to work, condition #1 would have to be "the input format is not PDF" instead.
So, for your above proposal to work, condition #1 would have to be "the input format is not PDF" instead.