pdf: first test if it is already pdf, and then do not check its mimetype