Support for PDF (Portable Document Format) is provided by pdf_document_handler. All current versions at the time of writing (i.e up to and including PDF 2.0) are supported.
MuPDF contains functionality to allow deeper access to the contents and structure of a PDF file than is exposed through the standard fz_ prefixed functions, by using pdf_ prefixed functions.
The library provides a pdf_specifics function to safely promote a fz_document pointer to a pdf_document pointer. This will return NULL if the document is not a PDF, indicating that the pdf_ functions cannot be used.