also try to cater for pdf versions of documents