My web application loads a pdf in the browser. I have figured out how to check that the pdf has loaded correctly using:
verifyAttribute xpath=//embed/@src {URL of P
you can use Selenium Web Driver and Google Match and Diff project to read pdf content in selenium and do comparison.
Read the article here.