The typical approach to comparing PDF files in git diff outputs
amounts to converting PDF files into texts through pdftotext and
show the diff of conversion.
- Install the utility 
pdftotextfrom the projectpoppler - Enable the handler 
pdffilesindifffor PDF files and instruct the handler to call thepdf-astextplainscript: