PdfHandler shells out to pdftotext, convert, gs, and pdfinfo. All of these should be restricted using https://www.mediawiki.org/wiki/Manual:Shell_framework#Restrictions
convert and ps are already firejailed in Wikimedia production, but need to be converted to the MediaWiki framework