Found this https://vslavik.github.io/diff-pdf/ which is good for PDF diffing - it only needs to run when a diff is detected We can display a PDF of the diff in an iframe or new tab or download. and the 'history' part can call some custom module to see what the right type is for the document