Made changes to use poppler-simple on MacOs