Error at looping through pdf files of different formats to scrap data

Kindly have a view on this thread

@Chaitanya_podilapu