It would allow you to take a physically scanned document and create a PDF with selectable text you could copy+paste, search over, etc.
the text will be added to each page invisibly "behind" the images.
ImageMagick to convert the pages to images
Tesseract-ocr by Google to transcribe the text in the images, which puts it’s output into singular pdf files
Pdfunite to stitch together the pdfs back into a whole file
I’m sure I’m missing a few, iirc it can call a tool that straightens the pages as well.
EDIT: Messed around and remembered the stuff:
where a.pdf is a 2 page PDF:
>convert a.pdf a.png
makes a-0.png and a-1.png
OCR's each image:
>for x in {0..1} ; do tesseract a-$x.png a_ocr-$x PDF ; done ;
combines them into 1 PDF:
>pdfunite a_ocr-{0..1}.pdf a_ocr_combined.pdf
The input is a scanned PDF. The output is the same PDF with the recognized text on top, in a transparent font.
Copy and paste now works because when you click the PDF you are selecting the transparent text.