Hi Sumedha,
We have checked how your script works with the files you sent to David in the M0071709 query, and found out that it works correctly. Please clarify what situation you faced: what is the expected result and what do you really get? Do you face the problem with the files you sent to David?
If you face the issue with different files, please send us the files. You can do this by sending a reply to the M0071709 message.
As for MSAA, the main idea is to recognise the PDF file internal strusture by using the MSAA technology, parse the file and compare the needed data obtained from different files. Have you read the articles Allen gave you in his posts?