Implemented PDF scanning