Inconsistent results on PDF contents

I use several rules to name and tag invoices received as PDFs. A rule which used to work but no longer does so I am looking for help on how to fix it.
Example1, which works is:


Example2, which doesn't is:


Example1, which works is:


Example2, which doesn't is:

