Load the PDF or the Document plugin conditionally