Can we compare one word/PDF doc with a reference template doc?

Hi All,

I am working on a project to compare letter format. Compare the letter format received, with a reference template.
The letter will be either in word or PDF format.

If the letter received can be matched with the position of the attribute of the reference template and if attribute position and an exact match of the attribute, then we can say, the received letter is matching with the reference template.

Also, can we do auto-correcting the received letter, if it does not match with the reference template?

Could you please help me out, if we can do it using UiPath?
If we can, could you please provide any possible approach?

Can anyone help on the above points?