Not sure if your question is about generating the documents or analysing them, but I played around a little with generating documents and thought I might as well share what I have done - both for fun and for my own reference.
I used ImageMagick at the command-line. It is included in most Linux distros and is available for macOS and Windows.
I did another, somewhat related answer about synthetic ageing of photographs here. Along these lines:

So, I grabbed the "Olde English" font from here and installed it for ImageMagick to use as shown here.
I grabbed some nonsense English text from the Nietzsche Ipsum because the "Lorem Ipsum" is in latin. Feigning intelligence, I saved that in a file called wisdom.txt
:
Derive oneself good inexpedient derive ideal society. Mountains
burying prejudice prejudice endless transvaluation contradict evil
endless right. Burying transvaluation selfish passion overcome suicide
contradict insofar madness spirit strong enlightenment suicide.
Ubermensch fearful right god sexuality madness truth against
superiority salvation.
Pinnacle faithful ascetic evil society marvelous will ultimate play
christianity noble spirit good. Burying faithful war prejudice justice
contradict of. Morality moral enlightenment gains zarathustra
superiority joy war. Christianity value reason strong ideal.
Deceptions justice god suicide battle of. Christian decieve abstract
society revaluation derive ultimate joy.
Right morality grandeur value decieve. Revaluation christianity
endless derive endless morality. Hatred of deceptions suicide snare
pinnacle overcome society suicide ideal. Transvaluation christian
pinnacle ultimate faith war ubermensch noble strong insofar prejudice
abstract morality. Prejudice ascetic gains horror strong good against
intentions snare.
Deceptions moral madness free inexpedient holiest convictions
morality. Pious abstract moral christian deceptions overcome sexuality
hope horror inexpedient. Against spirit.
I then saved your "dirty document" as papyrus.jpg
and ran the following ImageMagick command in Terminal:
magick papyrus.jpg -size 360x600 -background none -font OldeEnglish -pointsize 20 -fill '#555' caption:@wisdom.txt -gravity center -compose multiply -composite result.png
And here is the result:

Basically I am generating the text in dark grey (-fill '#555'
) into an area a little smaller than the paper (-size 360x600
) on a transparent background (-background none
) and then centering it (-gravity center
) and compositing it (-compose multiply -composite
) onto the background.
You could do other things, like:
- distress the text with noise before compositing it onto the background
- setting it out in a two-column spread using Pango
- distorting it into a slightly wavy form
but the basic idea is here and anyone who has the time can develop it further.
Keywords: Image processing, ancient text, manuscript, olde English, papyrus, Lorem Ipsum, distress, medieval, document, aged, synthetic ageing.