Janusz - 2020-08-25

It's a kind of overkill, but you can use ocrodjvu (http://manpages.ubuntu.com/manpages/bionic/man1/ocrodjvu.1.html), by default it does not OCR pages which already have the hidden text. Unfortunatelly it's written Python 2, so it will not be available in future distributions of Debian/Ubuntu.