Buggy PDF content checking?

Hi,
I think there is a sneaky bug in the way Hazel inspects PDF content, not matching it when it should.
Regularly, I put OCR'd PDFs into my Action folder on Dropbox, to be processed and filed by Hazel.
Sometimes the rules do not recognize the files' content even though they should. Deactivating the rule, moving the file away, putting it back and reactivating the rule, or even modifying the file in an unrelated way sometimes does the trick.
For instance, here are two cases that just happened to me:
A)
- Got a fresh OCR'd file in my Action folder. Hazel does not notice it based on criteria that it should fulfill.
- I open Hazel and use the rule preview function to check if PDF file is recognized. On the four criteria, only one matches, so the rule does not fire (even though it did on similar files a moment before). So far, I get it.
- Okay, I'm thinking, maybe I have special characters in my OCR'd PDF file that prevent recognition by Hazel, so I go in my PDF, copy the exact string I'm looking for, paste it into the corresponding field in Hazel. Boom, suddenly, not only that criterion matches, but also the other two I have not touched and were NOT matching a second before!
B) Same kind of situation:
- Got a fresh OCR'd file in my Action folder. Hazel does not notice it based on criteria that it should fulfill.
- So I open the PDF in macOS' Preview, remove a blank page in the PDF (that has nothing to do with the rule's criteria).
- Hazel suddenly notices the file it was not noticing a moment before and acts on it as it should.
Am I doing something wrong here? It seems to me there is something weird going on with file or rule refreshes, but I obviously don't know! If it's a bug, just wanted to report it, and otherwise, can someone tell me what I'm doing wrong...?
I think there is a sneaky bug in the way Hazel inspects PDF content, not matching it when it should.
Regularly, I put OCR'd PDFs into my Action folder on Dropbox, to be processed and filed by Hazel.
Sometimes the rules do not recognize the files' content even though they should. Deactivating the rule, moving the file away, putting it back and reactivating the rule, or even modifying the file in an unrelated way sometimes does the trick.
For instance, here are two cases that just happened to me:
A)
- Got a fresh OCR'd file in my Action folder. Hazel does not notice it based on criteria that it should fulfill.
- I open Hazel and use the rule preview function to check if PDF file is recognized. On the four criteria, only one matches, so the rule does not fire (even though it did on similar files a moment before). So far, I get it.
- Okay, I'm thinking, maybe I have special characters in my OCR'd PDF file that prevent recognition by Hazel, so I go in my PDF, copy the exact string I'm looking for, paste it into the corresponding field in Hazel. Boom, suddenly, not only that criterion matches, but also the other two I have not touched and were NOT matching a second before!
B) Same kind of situation:
- Got a fresh OCR'd file in my Action folder. Hazel does not notice it based on criteria that it should fulfill.
- So I open the PDF in macOS' Preview, remove a blank page in the PDF (that has nothing to do with the rule's criteria).
- Hazel suddenly notices the file it was not noticing a moment before and acts on it as it should.
Am I doing something wrong here? It seems to me there is something weird going on with file or rule refreshes, but I obviously don't know! If it's a bug, just wanted to report it, and otherwise, can someone tell me what I'm doing wrong...?