Only show pdf options if formats includes pdf.