errorMessagePDF static method
Returns an error message when a file is not a valid PDF or does not exist.
path
The file path of the invalid or non-existent PDF.
Implementation
static String errorMessagePDF(String path) =>
"File is not of PDF type or does not exist: $path";