Non riesco a settare l'header tu intendevi così?

header("text/html, image/ *, application/pdf");

non funzia ugualmente