Added merging feature after match is found in the pdf list