Checks if string is an pdf file.
static bool isPDF(String filePath) { return filePath.toLowerCase().endsWith(".pdf"); }