Check whether a PDF file exists, and if so calculate its digest.
pdf_digest_if_exists(file, alg = NA_character_)
The pdf file (the file need not exist).
The digest algorithm to use.
A character vector with the digest, or NA
if the file does not
exist.