Description Usage Arguments Details Value
Test if a file is a pdf
1 | is_pdf(f)
|
f |
Path to a file to test |
All PDFs should have a dictionary that contains information about the key metadata about the document. This function uses pdf_info to check if the downloaded file is, in fact, a PDF because too often we get something other than the PDF, e.g., an http status 404 download.
TRUE if pdftools::pdf_info thinks it's a PDF, else FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.