pdf generator: restrict to pdf mime type