Replace original PDF document when using OCR?

I’ve got a stash of PDF documents I want to convert to PDF+Text (OCR). The documents have already been linked in other places (using x-devonthink-item links). When doing OCR a new item gets created. Is it possible in some way (other than going through the filesystem, which would be my hacky workaround) to replace the original PDF with the OCR’ed PDF - keeping the UUIDs etc. intact?

E.g. you could use a smart rule and the OCR > Apply action.

Ah, that apply action does replace the original? Didn’t know that. Is there no way to trigger that command without a Smart Rule? (Works like a charm, btw - thanks!)

The smart rule can be used anytime e.g. via drag & drop or via Tools > Apply Rule.