Handle application/pdf case