Ignore case when searching.
If no pdf file present, take the thumbnail png.