I found some that do the opposite, take digital writing and format into a printed list.
I don’t know if you’re into this, but this would be a perfect project to learn a new language or framework.
So you say “programs like Trilium”. Have you looked at Joplin?
Joplin comes with OCR albeit for search only. I myself have not tried it yet, but Joplin itself is a great note app.
Also Joplin seems to have an in development plugin for extracting text via OCR.
Maybe you can then export it to Trilium, if this a one time thing.
If the apps don’t support them, then no.
Yeah they don’t but is there some program that is good at OCR/HCR then I can script it into these?
If the application supports an API of some sort, you could run OCR, then send them over API as converted input.