I use the smart rule to OCR a PDF if it doesn’t have a text layer. Unfortunately a locked PDF seems to meet the criteria and the OCR fails but I end up with a blank PDF (it overwrites the PDF).
Is there a condition I can add to the Smart rule not to OCR a locked PDF?