Convert image to pdf and include character

I am converting an image to pdf successfully using the standard libreoffice --headless --convert-to

However while everything looks fine the text is not treated as text in the new pdf document. Is there anyway of libre office to use ocr and embed text as text in the newly created pdf

Maybe this extension can help.

https://extensions.libreoffice.org/extensions/libre-ocr